Question/Issue:
I am using the Camera Module 3 with a Raspberry Pi 4 and the camera works for taking images, and videos, even with “edge-impulse-linux” and “edge-impulse-linux-runner”:
The problem is that when I try to run my deployed model, it doesn’t find the camera, not even using the “Linux-sdk-python” image classify.py example.
This is what it lists when not defining the camera manually:
Note: If I use a USB webcam, it works without problem, but I need to use the CSI camera.
OS characteristics:
Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
PRETTY_NAME=“Debian GNU/Linux 11 (bullseye)”
After some research, I think that this is an issue related to the new “libcamera” environment that is not natively supported by OpenCV.
Hi @mcmchris ,
I have not tried to use the new libcamera with opencv, but you likely need to use the Picamera2 library with the Edge Impulse examples. Please see the following posts for more information:
Hi @someguy ,
I tracked this down, and there are a few things going on:
First, as @rjames mentioned, you need to use the 64-bit version of Raspberry Pi OS with Edge Impulse models.
Second, Raspberry Pi dropped support for the Picamera package going forward with Bullseye . This is what causes the “libmmal.so: No such file or directory” error message. Please use Picamera2 instead. I have updated the examples in the course’s repo to use Picamera2. You can see an example capturing live images from …
Hello @shawn_edgeimpulse
Yes its working! Although the image quality its a bit low is it linked with the 320 by 320 height and width set in the code?
[picam works]
[image]
1 Like