IMX219 Not readable in raspberry pi 4

  1. Where did you get the camera module(s)?
    Online from robu.in
    https://robu.in/product/arducam-8mp-imx219-camera-module-with-fisheye-lens-for-jeson-nano-and-raspberry-pi-compute-module/

  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 = cap.read()

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

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

cap.release()
cv2.destroyAllWindows()

Hi,
Please refer to the link below:
https://forum.arducam.com/t/arducam-posting-rules-must-read/7/5