IMX219 Not readable in raspberry pi 4

  1. Where did you get the camera module(s)?
    Online from

  2. Model number of the product(s)?
    Arducam 8MP IMX219 Camera Module with Fisheye Lens for Jetson Nano and Raspberry Pi Compute Module

  3. What hardware/platform were you working on?
    Raspberry pi 4

  4. Instructions you have followed. (link/manual/etc.)
    No Instructions

  5. Problems you were having?
    Unable to read the camera using opencv python

  6. The dmesg log from your hardware?

  7. Troubleshooting attempts you’ve made?

  8. What help do you need?

I am using # Arducam 8MP IMX219 on my raspberry pi 4

I want to read the web cam from opencv library in python using cv2.VideoCapture but I am not able to read the web cam, I already turn on camera interface from raspi-config, although raspberry pi v2 camera is working fine but IMX219 is not working and my OS is “Debian GNU/Linux 11 (bullseye)”

This is python code for checking the webcam,while using Arducam IMX219 I am getting that print statement “Unable to read the camera”. Although Raspberry pi camera v2 is working fine with this code … Please help

import cv2

# 0 is default camera index , for first cam
cap = cv2.VideoCapture(0)

while True:

  ret, frame =

  # if unable to read the frame
  if  ret == False:
    print("Unable to read the camera")
  cv2.imshow("webCam", frame)

  key = cv2.waitKey(1) & 0xFF
  if key == 27:
    # break if Esc key is hit


Please refer to the link below: