Raspberry Pi CSI V3 Camera not working on deployment

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:

1 Like