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

Camera board • Troubleshooting in camera

$
0
0
I followed this document online https://datasheets.raspberrypi.com/came ... manual.pdf.
I have installed the python3-picamera2 library.
However, when I run the code:

Code:

from picamera2 import Picamera2picam2 = Picamera2()picam2.start_and_capture_file("test.jpg")
.
It gives me this error:
[0:23:23.841313319] [3720] INFO Camera camera_manager.cpp:325 libcamera v0.3.2+99-1230f78d
Traceback (most recent call last):
File "/home/ricky/Desktop/moduleç»ä¹ /module5.py", line 2, in <module>
picam2 = Picamera2()
^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 257, in __init__
camera_num = self.global_camera_info()[camera_num]['Num']
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
IndexError: list index out of range

Statistics: Posted by ricky2777 — Fri Jan 31, 2025 3:19 am — Replies 0 — Views 6



Viewing all articles
Browse latest Browse all 4507

Trending Articles