Ask Your Question
0

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 (http://docs.opencv.org/trunk/modules/contrib/doc/facerec/tutorial/facerec_video_recognition.html), 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
0

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);

to

VideoCapture cap("filename.avi");

There are many tutorials out there which explain this also!

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 367 times

Last updated: Jan 02 '14