Ask Your Question

Using captured .avi file instaed of webcam

asked 2014-01-01 14:28:07 -0600

lukaszbobrek gravatar image

Hi there, I am trying to implement Face Recognition in Videos source code for my purpose (, but as an input i need to use .avi file instead of webcam.

I will be delighted if anyone could help me.

Cheers, Lukasz

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-01-02 02:18:47 -0600

JAyThaRevo gravatar image

updated 2014-01-02 02:29:21 -0600

In this line simply change deviceID to the name of your video file. Make sure it is in the same folder as the .exe file!

VideoCapture cap(deviceId);


VideoCapture cap("filename.avi");

There are many tutorials out there which explain this also!

edit flag offensive delete link more

Question Tools


Asked: 2014-01-01 14:28:07 -0600

Seen: 347 times

Last updated: Jan 02 '14