Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5186

Troubleshooting • Re: Picamera2 - Combining Size and Transform Configuration

$
0
0
There are a number of ways to apply multiple configuration options.
Here's one example to try :-

Code:

from picamera2 import Picamera2,Previewfrom libcamera import Transformpicam2 = Picamera2()combined_config = picam2.create_preview_configuration({"size": (1920,1080)},                                                      transform=Transform(hflip=True))picam2.configure(combined_config)picam2.start_preview(Preview.QTGL)picam2.start()             
This does work for the preview, but when trying to capture a photo only either configuration will be applied to the final photo depending on the order of resolution or flip configuration. Not both.

Statistics: Posted by SalRaz — Wed Apr 24, 2024 12:23 am



Viewing all articles
Browse latest Browse all 5186

Trending Articles