raspberrypi / picamera2

New libcamera based python library
BSD 2-Clause "Simplified" License
891 stars 188 forks source link

Add stereo preview example #895

Closed will-v-pi closed 2 weeks ago

will-v-pi commented 11 months ago

Add an example demonstrating the use of stride, where the stride is set to twice the image width to allow an image from a second camera to be copied into the empty space, creating a stereo image

6by9 commented 7 months ago

On vc4 at least we could allow the selection API to set the compose rectangle to cover the part of the double sized buffer that the ISP is meant to write into. The same buffer could therefore be written by 2 instances of libcamera (one for each eye). The offset will need to be aligned based on the ISP constraints.

I have no idea with regard how to pass that information through libcamera in order to request this though!

davidplowman commented 7 months ago

@will-v-pi There was some kernel update required which is why we didn't merge this immediately, do we think that might all be sorted now? Perhaps it's worth rebasing and re-pushing...?

davidplowman commented 6 months ago

Closing and re-opening just to re-run the tests.

davidplowman commented 2 weeks ago

This has now been rebased and merged here: https://github.com/raspberrypi/picamera2/pull/1146

Sorry it took so long!!