Skip to content

horizontally flipped preview/image #7

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

Closed
jedgarpark opened this issue Dec 19, 2023 · 4 comments · Fixed by #9
Closed

horizontally flipped preview/image #7

jedgarpark opened this issue Dec 19, 2023 · 4 comments · Fixed by #9

Comments

@jedgarpark
Copy link

I'm seeing horizontally flipped/mirrored images in live preview and in saved images when using the examples/camera/code.py
I tried setting pycam.hmirror = False but this didn't seem to make a difference.

@jedgarpark
Copy link
Author

i was able to set the hmirror to False in the library itself to get a non-mirrored live view and stored photo by changing it to self.camera.hmirror = False so maybe this could be a choice in the constructor when we create the pycam object in code?

@caternuson
Copy link
Contributor

I ran into same thing running the camera example.

It's possible to fix in user code with:

pycam.camera.hmirror = False

hmirror is a property of the camera object within the pycam instance, not pycam itself.

I just added it after the constructor like this:

pycam = adafruit_pycamera.PyCamera()
pycam.camera.hmirror = False

@dhalbert
Copy link
Contributor

Maybe pycam.camera.hmirror = False should be the default?

@dhalbert dhalbert linked a pull request Dec 19, 2023 that will close this issue
@caternuson
Copy link
Contributor

Yep. Agree. But don't know reasoning behind current default in library.

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

Successfully merging a pull request may close this issue.

3 participants