I tried to use yolov5 on my raspberry pi for image detection. But whenever I tried using the raspberry pi camera this error message popped up with 'AssertionError: 1/1: 0... Failed to open 0'
I am using
Raspberry Pi 4 (4 GB RAM)
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.Sign up to join this community
It looks like opencv has some problem to open your webcam. From the tutorial on PyTorch's website, they have some configuration on "/boot/config.txt". Have you completed this step?
Another way to see which media devices available on your system, you can check with;