From: Michal Sojka Date: Wed, 26 Sep 2018 19:38:52 +0000 (+0200) Subject: Do not exit when pressing just shift, control, etc. X-Git-Url: http://rtime.felk.cvut.cz/gitweb/hercules2020/kcf.git/commitdiff_plain/29c2f6f6b0adeb6f2b6a9249ba62ef1cf50ea930 Do not exit when pressing just shift, control, etc. --- diff --git a/main_vot.cpp b/main_vot.cpp index 6980222..eddb39f 100644 --- a/main_vot.cpp +++ b/main_vot.cpp @@ -184,7 +184,7 @@ int main(int argc, char *argv[]) cv::rectangle(image, bb_rect, CV_RGB(0,255,0), 2); cv::imshow("output", image); int ret = cv::waitKey(visualize_delay); - if (visualize_delay > 0 && ret != -1 && ret != 255) + if (visualize_delay > 0 && ret != -1 && ret < 128) break; }