Ask Your Question
0

Creating synchronized stereo videos using webcams

asked 2014-08-04 05:04:40 -0600

Kozuch gravatar image

updated 2014-08-04 05:12:45 -0600

I am getting started with computer stereo vision. I am using very simple VideoCapture code and trying to save two videos that are synchronized against each other. So far I wrote code to save image pair when key is hit (source here). I used Android stopwatch apps (UltraChron Stopwatch Lite and Stopwatch Timer) on my Samsung Galaxy S3 mini to realize that my saved still images are out of sync (show different time on stopwatch).

I moved the waitKey function before "cap1 >> frame1;" and increased timeout to 1000ms (waitKey(1000);) - this helped getting about 1 FPS but they still were not 100% in sync (only some frames were in sync). The webcams I use are Microsoft LifeCam Studio (resolution 640x480).

An ideal result would be a 100% synchronized stereo video stream that has X FPS. Using OpenCV 2.4.8 in Ubuntu 14.04.

Thanks for help in advance!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-08-10 12:40:04 -0600

updated 2014-08-22 11:25:06 -0600

USB webcams cannot be software synchronized, they must be hardware synchronized. If you want to do this yourself, consider purchasing 2 Sony PlayStation Eye cameras and following the instructions for DIY hardware synchronization available on the web (see Peau Productions for one example). Your other option is to buy a stereo rig that is already hardware synchronized. Duo3D offers such a USB stereo camera.

edit flag offensive delete link more

Comments

Can you please post a link to DIY hardware synchronization for PlayStation Eye?

user10001 gravatar imageuser10001 ( 2014-08-25 06:39:38 -0600 )edit
1

Question Tools

1 follower

Stats

Asked: 2014-08-04 05:04:40 -0600

Seen: 2,928 times

Last updated: Aug 22 '14