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

Mirror photos #571

Open
BramWerbrouck opened this issue Apr 7, 2024 · 3 comments
Open

Mirror photos #571

BramWerbrouck opened this issue Apr 7, 2024 · 3 comments
Assignees
Labels

Comments

@BramWerbrouck
Copy link

Al the pictures taken with my pi camera v2 are mirrored (you can’t read the text on my shirt) how can I solve this problem?

@werdeil werdeil added question and removed bug labels Apr 8, 2024
@werdeil
Copy link
Member

werdeil commented Apr 8, 2024

Hi @BramWerbrouck, have a look at the flip setting in the camera section:

# Flip horizontally the capture
flip = False

@werdeil werdeil self-assigned this Apr 8, 2024
@BramWerbrouck
Copy link
Author

BramWerbrouck commented Apr 8, 2024

These lines where missing in my config-file, thanks for this.

The problem now is that the 'live video' just before the capture, is mirrored (just like it was before).. the processed image is correct now (thanks to the flip option in the config-file) can this problem be solved too?

@BramWerbrouck
Copy link
Author

BramWerbrouck commented May 26, 2024

I found the problem. I changed rule 88 from rpi.py from
def preview(self, window, flip=True):
into:
def preview(self, window, flip=False):

And:

if flip:
    flip = False
else:
    flip = True 

into:

if flip:
    flip = True
else:
    flip = False

and the problem is solved :-) Now of works when I change the camera flip option in the Config file (no id why it didn’t before)

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

No branches or pull requests

2 participants