Ask Your Question
0

how to get separate left sensor image and right sensor image using opencv

asked 2016-09-23 18:24:20 -0500

<andrev> could you name a sequence which will capture video as the following does:luvcview -d /dev/video0 -f MJPG -S 1280x480 output

will the following does the trick:cap.set(CV_CAP_PROP_FOURCC ,CV_FOURCC('M', 'J', 'P', 'G') ) if accompained with cap.set(CV_CAP_PROP_FRAME_WIDTH, 1280); and cap.set(CV_CAP_PROP_FRAME_HEIGHT, 480); ? will there be a way to split somehow left and right sensors images which is acquired if using luvcview -d /dev/video0 -f MJPG -S 1280x480 ? If using videocapture cap(0) it just returns a single image Thanks Andrey

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-09-25 02:07:50 -0500

berak gravatar image

no ide if it works with your HW, but you could try like:

VideoCapture cap(0);
...
bool ok = cap.grab();

Mat left,right;
cap.retrieve(left, 0);
cap.retrieve(right, 1);
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-09-23 18:24:20 -0500

Seen: 82 times

Last updated: Sep 25 '16