added 0xFF & in front of every waitKey so that it works on linux
This commit is contained in:
@@ -156,7 +156,7 @@ if __name__ == '__main__':
|
||||
ret, img = cap.read()
|
||||
imgs.append(img)
|
||||
cv2.imshow('capture %d' % i, img)
|
||||
ch = cv2.waitKey(1)
|
||||
ch = 0xFF & cv2.waitKey(1)
|
||||
if ch == 27:
|
||||
break
|
||||
if ch == ord(' '):
|
||||
|
Reference in New Issue
Block a user