Access to raspberry pi camera from docker container and run yolo inference. #1173
Unanswered
Mrbenaicha
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
First, I want to thank you for sharing this repository. It has been incredibly helpful!
I am currently working on running this YOLO detection script as a Docker container. The container is built using this Dockerfile, and my goal is to use it to get YOLO detection outputs from the camera on my Raspberry Pi 5. However, I've encountered a couple of issues:
1. Import Error:
When running the script, I encountered the following error:
ImportError: cannot import name 'Hailo' from 'picamera2.devices' (/usr/lib/python3/dist-packages/picamera2/devices/__init__.py)
2. Camera Detection Issue
I attempted to verify whether the camera is detected inside the container by following the steps mentioned in this discussion. Here's the code snippet I used
Unfortunately, the output was an empty list:
avai cams = []
Docker info: Here is the detailed Docker version and environment information:
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions