python: better Python 3 support

This commit is contained in:
Alexander Alekhin
2018-05-11 13:29:28 +03:00
parent df02fe0615
commit 78f205ffa5
7 changed files with 30 additions and 17 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ if __name__ == '__main__':
img = cv.imread(fn, 0)
if img is None:
print('Failed to load fn1:', fn1)
print('Failed to load file:', fn)
sys.exit(1)
img = np.float32(img)/255.0