User avatar
JonnyAlpha
Raspberry Pi Certified Educator
Raspberry Pi Certified Educator
Posts: 572
Joined: Sat Nov 02, 2013 2:06 pm

Pi Camera Orientation Within Python

Sat Jan 02, 2016 7:05 pm

Hi;

I am happy with taking pictures using my Pi Camera and using -vf and -hf flags to correct the orientation but how do I use the flags when using the camera from within python??

Thanks
Raspberry Pi Certified Educator. Main Hardware - Raspberry Pi 1 model B revision 2, Raspberry Pi 2 model B, Pi Camera

User avatar
DougieLawson
Posts: 39297
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Pi Camera Orientation Within Python

Sat Jan 02, 2016 7:25 pm

If you're using the python picamera module set picamera.rotation() to 0, 90,180 or 270, picamera.vflip() true or false & picamera.hflip() true or false.

https://picamera.readthedocs.org/en/release-1.10/
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Python”