ivmech / ivport-v2

Raspberry Pi Camera Module V2 Multiplexer
http://ivmech.com
42 stars 11 forks source link

How to capture stereo image pair? #18

Open Patrickyp opened 5 years ago

Patrickyp commented 5 years ago

HI,

I have the IVMECH v2 and want to capture a image pair (1 from each of the 2 cameras) as close together as possible. Which code should I be looking at. I tried 3 functions from test_ivport_quad.py:

picam_capture() images way too far apart sometimes 400ms seconds apart. I need like 30ms apart max.

still_capture() even farther apart than picam_capture(), may improve if I get rid of preview?

picam_sequence() can't get the camera to switch reliably in 2 images, often captures 2 images with same camera.

Can someone point me to where I can find code that will capture exactly 1 image from each camera as close together as possible?

Patrickyp commented 5 years ago

picam_sequence() seems to capture first few images from same camera but after that changes the camera every image reliably. Why is that?