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

rotate image option #3

Open
donnels opened this issue Jul 17, 2023 · 1 comment
Open

rotate image option #3

donnels opened this issue Jul 17, 2023 · 1 comment

Comments

@donnels
Copy link

donnels commented Jul 17, 2023

I was beginning to use the camera with a steamdeck and found that due to the rotation of the camera in relation to the deck it's not good to work with when directly pluged into the usb c on the top. I had begun looking at just turning the image but am not that good with python so couldn't figure out a quick fix that worked satisfactorily. Am wondering if anyone else sees the need to be able to rate the image either via an option on startup or via a key binding.

@morty29
Copy link

morty29 commented Nov 9, 2023

You can rotate it to it's 'natural' position (usb on the top) by adding lets say at line 146 this:
imdata = cv2.rotate(imdata, cv2.ROTATE_90_CLOCKWISE)
If you need another orientation - replace ROTATE_90_CLOCKWISE with ROTATE_180 or ROTATE_90_COUNTERCLOCKWISE

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