added 0xFF & in front of every waitKey so that it works on linux
This commit is contained in:
@@ -60,5 +60,5 @@ if __name__ == '__main__':
|
||||
vis = a.copy()
|
||||
draw_str(vis, (20, 20), 'frame %d' % frame_i)
|
||||
cv2.imshow('a', vis)
|
||||
if cv2.waitKey(5) == 27:
|
||||
if 0xFF & cv2.waitKey(5) == 27:
|
||||
break
|
||||
|
Reference in New Issue
Block a user