Hello,
I’m using an “Arducam 4k 8MP IMX219 Autofocus USB Camera Module with Metal Case” from UCTRONICS. It doesn’t work correctly on my raspberry pi models.
I test the camera on windows 10 with openCV and it works perfectly. The camera fails when I try to use it on my raspberry pi model 2b and on my raspberry pi zero 2 w.
I have tried to use it on Debian 11.0 (bullseye) and Debian 10.0 (Buster).
The software I used was libcamera, openCV, fswebcam and luvcview.
The camera usually works the first time I run any of my scipts but, most of the time, it fails and shows an extremely saturated image. Sometimes, disconnecting and connecting the camera make it works once again. The same scripts on windows 10 works perfectly all the time.
I’d like to know if this USB camera works on some raspberry OS with openCV (On the store website it says “Plug &Play” for raspberry pi).
I’ve tried to change the camera parameters and I’ve detected some weird values. The values of the parameters are:
CAP_PROP_FRAME_WIDTH= 640.0
CAP_PROP_FRAME_HEIGHT= 480.0
CAP_PROP_FPS= 30.0
CAP_PROP_FOURCC = 1448695129.0 # Weird value. On windows 10 it is normal.
CAP_PROP_FORMAT= 16.0
CAP_PROP_MODE= 0.0 # On windows 10 it is 1.0.
CAP_PROP_BRIGHTNESS= 0.0
CAP_PROP_CONTRAST= 32.0
CAP_PROP_SATURATION= 64.0
CAP_PROP_HUE= 0.0
CAP_PROP_GAIN= 0.0
CAP_PROP_EXPOSURE= 157.0
CAP_PROP_CONVERT_RGB = 1.0
CAP_PROP_SETTINGS = -1.0
CAP_PROP_BUFFERSIZE = 4.0
CAP_PROP_AUTOFOCUS = 1.0
CAP_PROP_BACKEND = 200.0
CAP_PROP_CHANNEL = -1.0
CAP_PROP_AUTO_WB = 1.0
CAP_PROP_WB_TEMPERATURE = 4600.0
I can change some parameters but I can’t change the parameter with the weird value. When I try to change it, the changes takes no effect and I read the same strange values.
This is an example of the fail image that I get: