OV2710 only shows b&w image with OpenCV

  1. Where did you get the camera module(s)?
    supplier (amicus engineering)
  2. Model number of the product(s)?
    Dual 2MP OV2710
  3. What hardware/platform were you working on?
    Linux Ubuntu, Linux Debian
  4. Instructions you have followed. (link/manual/etc.)
    UVC Camera Module - Arducam
  5. Problems you were having?
    Camera only shows black and white (B&W), I expect color images
  6. The dmesg log from your hardware?
    how to generate one?
  7. Troubleshooting attempts you’ve made?
    Use AMCAP, I am able to see the color image
  8. What help do you need?
    Seems like this dual camera has VR and IR mode.
    IR mode is by default showing B&W and somehow the OpenCV takes this by default.

When I tried to run “v4l2-ctl --list-devices” in terminal, it throws the following responses.
Camera VR: Camera VR (usb-0000:02:02.0-1):
/dev/video0
/dev/video1

Camera IR: Camera IR (usb-0000:02:02.0-2):
/dev/video2
/dev/video3

So in my python code, I use “cap = cv2.VideoCapture(0)”
which refer to /dev/video0. This suppose to be the VR image but looks like I get an IR image.
How to fix this behavior?

Try to use /dev/video0 and /dev/video2

Can you try to open /dev/video0 and /dev/video2 at the same time? Perhaps their names were swapped incorrectly?