Page 1 of 1

Rotate image from camera by 90 degrees

Posted: Thursday 21 April 2022 22:45
by xxLeoxx93
Hi all,

my camera feed is unfortunatly rotated by 90 degrees. I didn't find any way to rotate the camera feed itself - which is acceptable, but I'm sending a snapshot via telegram, and that is also rotated.
Not the question wold be: is there any way to rotate the image somewhere in the process?

Here's my code:

Code: Select all

        
        os.execute('wget -O  /opt/domoticz/userdata/camsnapshot.jpg http://127.0.0.1:8090/camsnapshot.jpg?idx=1')
        os.execute('curl -s -X POST "https://api.telegram.org/bot"XXXXXXXX"/sendPhoto" -F chat_id=XXXXXX -F photo="@/opt/domoticz/userdata/camsnapshot.jpg"')
        
Thanks a lot!

Re: Rotate image from camera by 90 degrees

Posted: Friday 22 April 2022 1:03
by waltervl
I think you forgot to mention you are doing this in a Docker environment. And you also explained yourself in the Domoticz Docker topic that installing convert would be a heavy task.

So what other options are left within Domoticz Docker? I guess not a lot...

Re: Rotate image from camera by 90 degrees

Posted: Friday 22 April 2022 7:52
by gizmocuz
This is not a Domoticz issue. You can change this by either rotating your camera by 90 degrees, or see if this can be done in the camera user-interface.
If the camera is hanging correctly, and your feed is 90% rotated, I would get another camera