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

Rotation #63

Closed
icefabio opened this issue Apr 9, 2020 · 4 comments
Closed

Rotation #63

icefabio opened this issue Apr 9, 2020 · 4 comments

Comments

@icefabio
Copy link

icefabio commented Apr 9, 2020

Is there any way to rotate the image?

Thanks

@HerrHerrmannMann
Copy link

add two lines in /esp32-homekit-camera/compenents/esp32-camera/driver/camera.c

at line 1221 starts the ov2640 sensor.id.PID settings.
add under the "s_state->sensor.set_bpc(&s_state->sensor, false);" line this:

s_state->sensor.set_hmirror(&s_state->sensor, true);
s_state->sensor.set_vflip(&s_state->sensor, true);

@icefabio
Copy link
Author

icefabio commented May 1, 2020

Hi Herr! Many thanks for your tip. :)

Assuming these 2 lines rotate the image 180 degrees, how could I rotate it 90 or 270 degrees? What's the rule?

@HerrHerrmannMann
Copy link

hey,

I´ve looking for your issue. Rotation is not possible. Only hmirror & vflip.
You can rotate the image with a software solution. But, in this case, i´m out. I´m a bad coder...

@icefabio
Copy link
Author

Hi! It's clear :)

Tks

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