From 2dd3bf116e7b5441d6ae5c7d9e79af2fe5babf07 Mon Sep 17 00:00:00 2001 From: abidrahmank Date: Mon, 27 May 2013 10:30:30 +0530 Subject: [PATCH] ANDed waitkey result with 0xFF for x64 systems --- samples/python2/grabcut.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/python2/grabcut.py b/samples/python2/grabcut.py index 4de4f39..9fc1280 100644 --- a/samples/python2/grabcut.py +++ b/samples/python2/grabcut.py @@ -124,7 +124,7 @@ while(1): cv2.imshow('output',output) cv2.imshow('input',img) - k = cv2.waitKey(1) + k = 0xFF & cv2.waitKey(1) # key bindings if k == 27: # esc to exit -- 2.7.4