ArduCam 16mp Raspberry Pi camera and OpenCV

  1. Where did you get the camera module(s)?
  2. Model number of the product(s)? B0371+U6251
  3. What hardware/platform were you working on? Raspberry Pi 5 Bookworm
  4. Instructions you have followed. (link/manual/etc.)
    Object and Animal Recognition With Raspberry Pi and OpenCV - Tutorial Australia
  5. Problems you were having?
    Getting Object recognition working…
  6. The dmesg log from your hardware?
  7. Troubleshooting attempts you’ve made?
  8. What help do you need?

I have the software setup and the camera works well using libcamera / rpicamera software
The code “cap = cv2.VideoCapture(0)” ends in an error. It seems like I need to specify the feed type and choose the mode somehow. How do we specify this in Python so OpenCV can see the ArduCam and use it’s feed?

Though I anwser this questiones many times, I will repeat it here again.
Please refer to the code below:

1 Like