leswright1977 / PyThermalCamera

Python Software to use the Topdon TC001 Thermal Camera on Linux and the Raspberry Pi
Apache License 2.0
180 stars 35 forks source link

rotate image option #3

Open donnels opened 11 months ago

donnels commented 11 months ago

I was beginning to use the camera with a steamdeck and found that due to the rotation of the camera in relation to the deck it's not good to work with when directly pluged into the usb c on the top. I had begun looking at just turning the image but am not that good with python so couldn't figure out a quick fix that worked satisfactorily. Am wondering if anyone else sees the need to be able to rate the image either via an option on startup or via a key binding.

morty29 commented 7 months ago

You can rotate it to it's 'natural' position (usb on the top) by adding lets say at line 146 this: imdata = cv2.rotate(imdata, cv2.ROTATE_90_CLOCKWISE) If you need another orientation - replace ROTATE_90_CLOCKWISE with ROTATE_180 or ROTATE_90_COUNTERCLOCKWISE