Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Commit

Permalink
Update Main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
brian8544 committed Jun 8, 2023
1 parent d869177 commit 17e9660
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Main.cpp
Expand Up @@ -225,12 +225,8 @@ int main(int argc, char** argv)
// Wait for the user to press a key
int key = cv::waitKey(1);

// If the user presses ESC, then break from the loop
if (key == 27)
{
break;
}
else if (key == 'q')
// If the user presses Q, then break from the loop
if (key == 27 || key == 'q' || key == 'Q')
{
break;
}
Expand Down

0 comments on commit 17e9660

Please sign in to comment.