Mercurial Hosting > traffic-intelligence
comparison python/cvutils.py @ 501:c81cbd6953fb
update to classify speed to remove data at both ends
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Tue, 20 May 2014 15:18:55 -0400 |
parents | 343cfd185ca6 |
children | ad518f0c3218 |
comparison
equal
deleted
inserted
replaced
500:3b99d712bbee | 501:c81cbd6953fb |
---|---|
3 | 3 |
4 try: | 4 try: |
5 import cv2 | 5 import cv2 |
6 opencvAvailable = True | 6 opencvAvailable = True |
7 except ImportError: | 7 except ImportError: |
8 print('OpenCV library could not be loaded (video replay functions will not be available)') | 8 print('OpenCV library could not be loaded (video replay functions will not be available)') # TODO change to logging module |
9 opencvAvailable = False | 9 opencvAvailable = False |
10 try: | 10 try: |
11 import skimage | 11 import skimage |
12 skimageAvailable = True | 12 skimageAvailable = True |
13 except ImportError: | 13 except ImportError: |