We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f073c00 + e19a449 commit d17e2abCopy full SHA for d17e2ab
modules/tracking/src/roiSelector.cpp
@@ -107,8 +107,10 @@ namespace cv {
107
// select the object
108
setMouseCallback( windowName, mouseHandler, (void *)&selectorParams );
109
110
+ // extract lower 8 bits for scancode comparison
111
+ unsigned int key_ = key & 0xFF;
112
// end selection process on SPACE (32) ESC (27) or ENTER (13)
- while(!(key==32 || key==27 || key==13)){
113
+ while(!(key_==32 || key_==27 || key_==13)){
114
// draw the selected object
115
rectangle(
116
selectorParams.image,
0 commit comments