question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: How I can rotate a stream camera image?

See original GitHub issue

I’m using for the first time this mod, and for me it’s the first time that I’m using the CSS (sorry if this is a trivial question). I have a picture-entity used to show an image (Octoprint mpeg image). The problem is that the camera is rotated of 180 degree, for this reason I need to rotate the image in the Home Assistant. I’m able to apply the rotation directly in the picture-entity in this way:

   aspect_ratio: 50%
   camera_image: camera.octoprint
   #camera_view: live
   image: 'http://octopi.local/webcam/?action=snapshot'
   show_name: false
   show_state: false
   type: picture-entity
   style: |
     ha-card {
       transform: rotate(180deg);
     }

When I try to open the ha-dialog to show the live image (I think it’s a ‘more-info’ panel) the image shown is correctly in live but with the original rotation.

How I can rotate also the image shown in this panel?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
gigioscommented, Dec 21, 2020

No, my post was directly in the thread related the rotation of the image with octoprint (https://community.home-assistant.io/t/rotate-webcam-feed-mjpeg-in-a-lovelace/164418/9). I will post the same question in the ‘official’ thread, thanks.

0reactions
gigioscommented, Dec 29, 2020

I haven’t found a solution. I took a USB extension cable and rotated the camera.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I rotate a camera video image using the NVR software?
To rotate the camera video image: On the recorder, open the setup menu and click on Cameras.Click Device Setup, and then Stream Settings....
Read more >
How To FREELY ROTATE SOURCES in OBS | Stream Aid
The BEST Streaming Assets • https://nerdordie.com/shop/ref/9wuitu/UPGRADE YOUR STREAM ...
Read more >
Question / Help - Rotate webcam image? | OBS Forums
I want to rotate the webcam image in OBS Studio. I have a Logitech c920 that only does landscape mode. If I physically...
Read more >
Question: Rotate/flip webcam stream by 90°/180° #581 - GitHub
Hello, Does somebody know an easy way to rotate/flip the webcam stream within a panel? Maybe a "non-easy" solution?
Read more >
Rotating an image stream after camera - MSDN - Microsoft
In the event of ImageAvailable im trying to rotate the image stream 90 degrees counter-clockwise and according to this post ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found