Add key scan
This commit is contained in:
parent
52d4c85dc9
commit
46dfeeabc2
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue