Mercurial Hosting > traffic-intelligence
comparison python/cvutils.py @ 511:ad518f0c3218
merged pulling from main
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Wed, 28 May 2014 17:46:38 -0400 |
parents | b0dac840c24f c81cbd6953fb |
children | 727e3c529519 |
comparison
equal
deleted
inserted
replaced
510:b0dac840c24f | 511:ad518f0c3218 |
---|---|
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: |