Not entirely sure what to suggest, but I'd try some different camera resolutions to see if that shows any differences, such asDoes that show a sensible preview image?
In your earlier example, it might also be worth putting a short sleep (maybe a second or two) before the "capture_file", perhaps the first frame out of the camera is not usable. It might also be worth capturing a sequence of a few images, just to check that.
Code:
from picamera2 import Picamera2picam2 = Picamera2()picam2.start(show_preview=True)In your earlier example, it might also be worth putting a short sleep (maybe a second or two) before the "capture_file", perhaps the first frame out of the camera is not usable. It might also be worth capturing a sequence of a few images, just to check that.
Statistics: Posted by therealdavidp — Thu Mar 20, 2025 9:35 am