added 0xFF & in front of every waitKey so that it works on linux
This commit is contained in:
@@ -37,7 +37,7 @@ class App:
|
||||
|
||||
def run(self):
|
||||
while True:
|
||||
ch = cv2.waitKey(50)
|
||||
ch = 0xFF & cv2.waitKey(50)
|
||||
if ch == 27:
|
||||
break
|
||||
if ch >= ord('1') and ch <= ord('7'):
|
||||
|
||||
Reference in New Issue
Block a user