Hi, I have an Arducam UVC camera that works fine on Windows but won’t open on Ubuntu on the same laptop. Hoping someone here can help me figure out what’s going on.
On Windows it works perfectly, both in the Camera app and with OpenCV VideoCapture.
On Ubuntu 20.04 (same laptop) it will NOT open in OpenCV or in the Cheese app. The weird part is that VLC does work with it, and both VLC and OpenCV use v4l2. I also have a different Arducam UVC camera (16MP autofocus) that works fine on Ubuntu with OpenCV and Cheese.
Things I’ve already tried:
lsusb shows the USB camera/sensor name and manufacturer, so the drivers seem to be there
the camera does appear in ls /dev/video*
tried chmod 777 and +x on it, no luck
My goal is to get it working on Ubuntu with OpenCV 4.5.4. Any pointers?
Sorry to hear you’re hitting this. Our engineer Jeff tested this camera on an Ubuntu system and couldn’t reproduce the problem - it opened fine for him. We’ve attached a few screenshots (the test program used, the OpenCV version, and the test result) so you can compare.
Since we can’t reproduce it here, it may be specific to your program or your OpenCV configuration. Can you send me your test program? I can test it for you. If you can share the exact code, we’ll run it on our side and try to reproduce it.
So same laptop, same code - the 16MP autofocus camera works, the tripod camera fails.
My environment:
Ubuntu 20.04 LTS
Python 3.8
OpenCV version 4.5.4.60 installed using pip3
One more thing about the tripod unit: I was expecting it with the 2.8-12mm varifocal lens, but this one came with a fixed focal lens instead. I’ll send the requested info (the code and outputs) in my next message.
In the code I tried all of these and they all return the same error:
VideoCapture(0)
VideoCapture(1)
VideoCapture(“/dev/video0”)
VideoCapture(“/dev/video1”)
All four variants give the identical error. The environment is still Ubuntu 20.04 LTS with Python 3.8 and OpenCV 4.5.4.60 from pip3. Let me know what else you need.
Got it, thanks for all the files. Quick recap of where we are: you’ve provided the code, lsusb, ls /dev/video*, the pip3 show opencv-python output, and the runtime error, and every VideoCapture variant (0, 1, “/dev/video0”, “/dev/video1”) fails the same way. That - plus the fact that another Arducam UVC camera works with the same code on the same machine - points toward something specific to this camera’s UVC stream / configuration rather than your Python or OpenCV setup.
Could you also attach a picture of the hardware? Once we have that, we’ll continue testing right after the Dragon Boat Festival holiday and get back to you. For now it’s still under investigation - no confirmed root cause or workaround yet.