Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erro ao executar a camera #27

Open
ar-acvf opened this issue Aug 4, 2024 · 3 comments
Open

Erro ao executar a camera #27

ar-acvf opened this issue Aug 4, 2024 · 3 comments

Comments

@ar-acvf
Copy link

ar-acvf commented Aug 4, 2024

~/Freenove_Robot_Dog_Kit_for_Raspberry_Pi/Code/Server $ python camera.py

[0:00:54.741977633] [1947] INFO Camera camera_manager.cpp:313 libcamera v0.3.0+65-6ddd79b5
Traceback (most recent call last):
File "/home/arlindo/Freenove_Robot_Dog_Kit_for_Raspberry_Pi/Code/Server/camera.py", line 2, in
picam2 = Picamera2()
^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 246, in init
camera_num = self.global_camera_info()[camera_num]['Num']
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
IndexError: list index out of range

@Shaynee-MO
Copy link
Member

The error is because the camera cannot be detected.

Please do as follows:

  1. Check the wiring. You can send us pictures of the wiring and we will check for you,
    image

  2. Follow the tutorial to make configuration.
    image

  3. Reboot your raspberry pi. Run ls /dev/video* to see if the camera can be detected.

If you have any concerns, please feel free to contact us.

Best regards,
Shaynee
Freenove Support Team

www.freenove.com

@ar-acvf
Copy link
Author

ar-acvf commented Aug 6, 2024 via email

@Shaynee-MO
Copy link
Member

Sorry but we cannot see the image. Would you mind sending it again? Many thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants