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

Troubleshooting • Camera from python script more zoomed in than from terminal

$
0
0
Hello. I have a Pi 4 with a camera module v2, via SSH, and need to capture a image, but when I go to do so, the image is more zoomed in than the terminal, which I have been using as the basis for my design.
The commands and code I have been using are:

Code:

libcamera-hello --qt
and

Code:

from picamera2 import Picamera2, Previewfrom libcamera import Transformimport time#Setuppicam2 = Picamera2()camera_config = picam2.create_preview_configuration()picam2.configure(camera_config)#Start stuffpicam2.start_preview(Preview.QT)picam2.start()#Actually do stufftime.sleep(2)picam2.capture_file("test.jpg")
I don't know how to zoom out in picamera2 / libcamera, just zoom in. Can anyone help?

Statistics: Posted by Calc4me — Sun Mar 10, 2024 6:52 pm



Viewing all articles
Browse latest Browse all 5025

Trending Articles