Please help me in achieving above task.I’m newbie to openCV. I have OpenCV 2.2 installed in my system and using VC++ 2010 Express as IDE. I don’t have inbuilt webcam in my laptop…
just i learnt how to load image. I’m very eager to load a video file from my disk(preferably mp4 , flv format) and wish to play it using openCV.
Please help me in achieving above task.I’m newbie to openCV. I have OpenCV 2.2
Share
Using the C interface of OpenCV (which have worked better for me on Windows boxes), the function to load the video file is
cvCaptureFromAVI(). After that, you need to use the traditional loop to retrieve frames throughcvQueryFrame()and thencvShowImage()to display them on a window created withcvNamedWindow().This blog post brings a little extra info on the task you are trying to accomplish.