Rotate and Mirror Live Video #976
-
Hello, My problem is, that the video is upside down (because my camera also is upside down). But for my project the camera has to stay like that. My question now is: I hope you guys can help me =) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I am new to Python as well, but have found the following works: Using mjpeg_server.py, Insert the following before line 16 replace original line 87: picam2.configure(picam2…. With the following 2 lines: |
Beta Was this translation helpful? Give feedback.
I am new to Python as well, but have found the following works:
Using mjpeg_server.py, Insert the following before line 16
from libcamera import Transform
replace original line 87: picam2.configure(picam2…. With the following 2 lines:
config = picam2.create_video_configuration(main={"size":(640,480)}, transform=Transform(hflip = True, vflip = True))
picam2.configure(config)