autorope / donkeycar

Open source hardware and software platform to build a small scale self driving car.
http://www.donkeycar.com
MIT License
3.16k stars 1.3k forks source link

Add GUI or configuration option to flip/rotate the camera #447

Closed dmccreary closed 5 years ago

dmccreary commented 5 years ago

We are using the Nvidia Nano and the new Module V2 camera. The image comes up upsidedown on the web display. The only way I could find to flip the image was to go into the DonkeyCar parts, find camera.py file and change line 142 in the CSICamera init:

https://github.com/autorope/donkeycar/blob/dev/donkeycar/parts/camera.py gstreamer_flip=0 to be: gstreamer_flip=2

adricl commented 5 years ago

You can change the nano cameras rotation by using the line in myconfig.py CSIC_CAM_GSTREAMER_FLIP_PARM= 2