Commit e607b784 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #657 from berak:tracking_fix_selectRoi

parents 46dd2631 19b72cc4
......@@ -107,10 +107,8 @@ namespace cv {
// select the object
setMouseCallback( windowName, mouseHandler, (void *)&selectorParams );
// extract lower 8 bits for scancode comparison
unsigned int key_ = key & 0xFF;
// end selection process on SPACE (32) ESC (27) or ENTER (13)
while(!(key_==32 || key_==27 || key_==13)){
while(!(key==32 || key==27 || key==13)){
// draw the selected object
rectangle(
selectorParams.image,
......@@ -143,8 +141,8 @@ namespace cv {
// reset the image
selectorParams.image=img.clone();
//get keyboard event
key=waitKey(1);
//get keyboard event, extract lower 8 bits for scancode comparison
key=waitKey(1) & 0xFF;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment