Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3D image #12

Open
2print opened this issue Jul 28, 2019 · 4 comments
Open

3D image #12

2print opened this issue Jul 28, 2019 · 4 comments

Comments

@2print
Copy link

2print commented Jul 28, 2019

Is it possible to enable 2 camera to have 3D image?

@roberttidey
Copy link
Owner

The compute module version of the raspberry has 2 camera interfaces allowing 2 pi cameras to be attached but only 1 is active and processed by the GPU at a time.

This software supports the compute module and allows switching between the 2 cameras using the cn command which can be sent into the command PIPE.

If you are just interested in getting 2 still images from the cameras for processing into a stereo view then this would be possible by issuing an im command followed by a cn command (to switch cameras) followed by another im command.

If you want true simultaneous image capture or simultaneous video capture then you really need 2 Pis. The software runs well on a Pi Zero so that is an option. You then need to send in commands to both Pis close together.

@2print
Copy link
Author

2print commented Jul 29, 2019 via email

@roberttidey
Copy link
Owner

OK. This is using the -3d option supported by raspivid to run both cameras through the GPU simultaneously.

Currently tthe RPi Cam software doesn't support that.

In principle, it can be achieved by adding a bit more support in the MMAl layer, so I will investigate it further.

If I add support for it in then I won't have the means to test it as I don't have compute module / stereo camera set up. So it would just be supplied for external testing.

@2print
Copy link
Author

2print commented Jul 29, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants