I am trying to get a jpeg capture using python picamera2 and am having issues getting something that resembles an image.
i have a fresh install of bookworm via rpi imager 64bit. python3 is 3.11.2
i did not do any pip stuff.
the camera is a rpi cam3 noir.
i can get images using this command just fine.
libcamera-still -v -o test3.jpeg --immediate
when i try a basic capture like so:
Here are two images, one with python and other with libcamera command.
![Image]()
I have tried different configs but i am not sure what is going on. Is there more config required for the rpicam3?
i have also tried playing with camera.set_controls({"AfMode": 0,"LensPosition":2}) but doesn't seem to make it better.
i cant tell if its super focused, or wront exposure times.
please help a camera noob.
i have a fresh install of bookworm via rpi imager 64bit. python3 is 3.11.2
i did not do any pip stuff.
the camera is a rpi cam3 noir.
i can get images using this command just fine.
libcamera-still -v -o test3.jpeg --immediate
when i try a basic capture like so:
Code:
from picamera2 import Picamera2, Previewimport timepicam2 = Picamera2()config = picam2.create_still_configuration()picam2.configure(config)picam2.start()time.sleep(2)picam2.capture_file('test2.jpeg')
I have tried different configs but i am not sure what is going on. Is there more config required for the rpicam3?
i have also tried playing with camera.set_controls({"AfMode": 0,"LensPosition":2}) but doesn't seem to make it better.
i cant tell if its super focused, or wront exposure times.
please help a camera noob.
Statistics: Posted by rookiebeotch — Tue Dec 10, 2024 1:24 am — Replies 1 — Views 39