-
Notifications
You must be signed in to change notification settings - Fork 37
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
Rotating Cameras before they are put into the preview frame #8
Comments
Hi!
In your case you may try to use vflip this way:
p.s. Please keep this camera settings in all your code (including calibration images capture and depth map) |
Oh I need to rotate it by 90 degrees, hflip and vflip only allows you 180 degrees rotation. |
Ough, 90 degree rotation is a problem in stereoscopic mode. I describe this issue in this article https://stereopi.com/blog/diy-vr-headset-stereopi-10-ms-latency-just-135 (search by "Problem #3" At this moment we use physical camera rotation. |
Yeah this is what I'm doing right now, I just think that it'll be a bit disorienting for the would-be users if they are to adjust an object in a rotated preview before they can capture an image It would be nice if we can just communicate with the registers in the camera directly. I've been looking on how to modify them so that they automatically rotate on their own, but I can't seem to find a way to change the values in the camera's register |
That's why in our code we're not using native camera preview feature, but show already captured and processed images by means of Python's
Unfortunately, low-level RPi camera ecosystem is closed. I2C is occupied with the VPU system, and you can not access camera registers, if you want to use native applications like PiCamera or raspivid/raspistill etc. But you can access a registers if you 'll write your own driver, and this way you can access the video by, say, raspiraw or V4L. This is a hard way for experienced users. |
The title says my problem, I am having a hard time rotating each camera before they are put into the frame. I tried setting stereo_mode into top-bottom and then rotating the whole frame itself but since the resolutions are mixed up I am seeing green statics
The text was updated successfully, but these errors were encountered: