Ask Your Question

Process video in OpenCV, without playing it

asked 2018-05-01 21:54:06 -0500

I have code, which is able to capture faces, when it crossing a line in video, after that app will save it to local direction. Is it possible to process this application, with prerecorded video, but no playing it.

Means, if I have 2 hours video, how can I take all faces in video, within few minutes?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2018-05-02 01:24:44 -0500

berak gravatar image

updated 2018-05-02 01:25:14 -0500

no, it's not possible, to process a video without "playing it".

you as a human don't have to watch it, so no need for imshow() / waitKey().

still, 2 hours video means ~ 7200*30 frames to process. if you use haarcascades to detect faces here, and processing a single frame takes close to a second, it will take long.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-05-01 21:54:06 -0500

Seen: 83 times

Last updated: May 02 '18