added 0xFF & in front of every waitKey so that it works on linux
This commit is contained in:
@@ -22,7 +22,7 @@ if __name__ == '__main__':
|
||||
sketch = Sketcher('img', [img_mark, mark], lambda : ((255, 255, 255), 255))
|
||||
|
||||
while True:
|
||||
ch = cv2.waitKey()
|
||||
ch = 0xFF & cv2.waitKey()
|
||||
if ch == 27:
|
||||
break
|
||||
if ch == ord(' '):
|
||||
|
Reference in New Issue
Block a user