Skip to content

Commit 5eb8bf9

Browse files
committed
Merge pull request #620 from Emoters:hotfix/no_rect_on_escape
2 parents 3589b06 + 64d94e9 commit 5eb8bf9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/tracking/src/roiSelector.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,9 @@ namespace cv {
161161
printf("Finish the selection process by pressing ESC button!\n" );
162162

163163
// while key is not ESC (27)
164-
while(key!=27){
164+
for(;;) {
165165
temp=select(windowName, img, true, fromCenter);
166+
if(key==27) break;
166167
if(temp.width>0 && temp.height>0)
167168
box.push_back(temp);
168169
}

0 commit comments

Comments
 (0)