python: better Python 3 support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user