Rotate image from camera by 90 degrees

Moderator: leecollings

Post Reply
xxLeoxx93
Posts: 16
Joined: Wednesday 22 March 2017 21:48
Target OS: Windows
Domoticz version:
Contact:

Rotate image from camera by 90 degrees

Post 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!
User avatar
waltervl
Posts: 5905
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Rotate image from camera by 90 degrees

Post 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...
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
gizmocuz
Posts: 2552
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Rotate image from camera by 90 degrees

Post 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
Quality outlives Quantity!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest