picamera2 icon indicating copy to clipboard operation
picamera2 copied to clipboard

Add stereo preview example

Open will-v-pi opened this issue 2 years ago • 3 comments

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

will-v-pi avatar Dec 13 '23 15:12 will-v-pi

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!

6by9 avatar Apr 17 '24 16:04 6by9

@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 avatar Apr 18 '24 13:04 davidplowman

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

davidplowman avatar Apr 29 '24 12:04 davidplowman

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

Sorry it took so long!!

davidplowman avatar Oct 29 '24 09:10 davidplowman