Various Python samples updated for Python 2/3 compatibility.
This commit is contained in:
@@ -10,6 +10,9 @@ Usage:
|
||||
|
||||
'''
|
||||
|
||||
# Python 2/3 compatibility
|
||||
from __future__ import print_function
|
||||
|
||||
import cv2
|
||||
|
||||
# relative module
|
||||
@@ -20,7 +23,7 @@ import sys
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
print __doc__
|
||||
print(__doc__)
|
||||
|
||||
try:
|
||||
fn = sys.argv[1]
|
||||
|
Reference in New Issue
Block a user