added 0xFF & in front of every waitKey so that it works on linux
This commit is contained in:
@@ -69,7 +69,7 @@ if __name__ == '__main__':
|
||||
cur_glitch = warp_flow(cur_glitch, flow)
|
||||
cv2.imshow('glitch', cur_glitch)
|
||||
|
||||
ch = cv2.waitKey(5)
|
||||
ch = 0xFF & cv2.waitKey(5)
|
||||
if ch == 27:
|
||||
break
|
||||
if ch == ord('1'):
|
||||
|
||||
Reference in New Issue
Block a user