From 1740218ee07a84ff4060124c0580d4f2988457a2 Mon Sep 17 00:00:00 2001 From: Anatoly Orlov Date: Tue, 29 Mar 2016 20:02:35 +0300 Subject: [PATCH] small platform compatability fix for ESC key --- samples/python/kalman.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/python/kalman.py b/samples/python/kalman.py index cc11642..be361ff 100755 --- a/samples/python/kalman.py +++ b/samples/python/kalman.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python """ Tracking of rotating point. Rotation speed is constant. @@ -90,7 +90,7 @@ if __name__ == "__main__": if code != -1: break - if code in [27, ord('q'), ord('Q')]: + if (code % 0x100) in [27, ord('q'), ord('Q')]: break cv2.destroyWindow("Kalman") -- 2.7.4