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

Camera board • Picamera2: resolution of the preview screen and the shooting resolution

$
0
0
I would like to have different resolutions for the preview screen and for shooting in Picamera2. I have tried the following, but the last setting is the setting on the preview screen and the setting at the time of shooting.

Code:

picam2 = Picamera2()preview_config = picam2.create_preview_configuration({"size":(1920, 1080)})capture_config = picam2.create_still_configuration({"size": (4608, 2592)})picam2.configure(preview_config)picam2.configure(capture_config)picam2.start_preview(Preview.QTGL)picam2.start()time.sleep(10)picam2.capture_file("image.jpg")

Statistics: Posted by kimu1109 — Wed Jul 24, 2024 12:11 pm — Replies 0 — Views 9



Viewing all articles
Browse latest Browse all 4576

Trending Articles