Ask Your Question
-1

How to capture video from web camera and write video to file in C++ with OpenCV in Microsoft Visual Studio 2013

asked 2016-01-06 03:44:33 -0500

Nik gravatar image

Hello everybody!

Can somebody help me. I need a working code to capture video from web camera and write video to file in C++ with OpenCV in Microsoft Visual Studio 2013. I was searching around the internet and books. I couldn't get working code for that problem.

Thanks, Nik

edit retag flag offensive close merge delete

Comments

Did you try google?

Hint: "Opencv Reading and Writing Video". But first you might try "opencv 3.0 visual studio" too.

kbarni gravatar imagekbarni ( 2016-01-06 05:52:28 -0500 )edit

I solved a problem from another source on internet. However thank you for your answer and sorry for a litlle late answer. Thanks Nik

Nik gravatar imageNik ( 2016-01-28 03:57:58 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-01-06 06:43:15 -0500

karyuu gravatar image

For a USB camera,it's easy to capture the video with C++ class cv::VideoCapture.And you can write the video into file using another class,cv::VideoWriter. Anyway,for a web camera,you may have to use the SDK,witch is provided by the producer of it.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-01-06 03:44:33 -0500

Seen: 861 times

Last updated: Jan 06 '16