Skip to content

Rotate and Mirror Live Video #976

Answered by CTBradshawJr
Dailura asked this question in Q&A
Discussion options

You must be logged in to vote

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)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Dailura
Comment options

@ArosPrince
Comment options

Answer selected by Dailura
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants