Add key scan

This commit is contained in:
daleclack 2022-07-16 13:08:42 +08:00
parent 52d4c85dc9
commit 46dfeeabc2
1 changed files with 4 additions and 1 deletions

View File

@ -33,7 +33,10 @@ int main(int argc, char **argv)
} }
imshow("Video Capture", frame); imshow("Video Capture", frame);
waitKey(1); int c = waitKey(1);
if(c == 27){
break;
}
} }
capture.release(); capture.release();