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

Troubleshooting • Re: Raspberry Pi camera not working

$
0
0
In Thonny, try the "FIrst Example" from section 2.3 of the Picamera2 Library (python). It works for me on a Pi3 running Raspberry Pi OS with desktop (64-bit) Bookworm with camera module 2 attached.

Code:

from picamera2 import Picamera2, Previewimport timepicam2 = Picamera2()camera_config = picam2.create_preview_configuration()picam2.configure(camera_config)picam2.start_preview(Preview.QTGL)picam2.start()time.sleep(2)picam2.capture_file("test.jpg")

Statistics: Posted by neilgl — Tue Feb 27, 2024 4:08 pm



Viewing all articles
Browse latest Browse all 5239

Trending Articles