Various Python samples updated for Python 2/3 compatibility.

This commit is contained in:
Adam Gibson
2015-09-14 00:00:22 +08:00
parent 190d00ea3e
commit b57be28920
34 changed files with 288 additions and 99 deletions

View File

@@ -18,6 +18,9 @@ Keys
ESC - exit
'''
# Python 2/3 compatibility
from __future__ import print_function
import numpy as np
import cv2
import video
@@ -93,7 +96,7 @@ def main():
except:
video_src = 0
print __doc__
print(__doc__)
App(video_src).run()
cv2.destroyAllWindows()