Hi all, I’m stuck with an autofocus problem on my Arducam camera. I’ve been calling it an IMX219 focus issue. It’s the Arducam 16MP Autofocus USB Camera running on a Raspberry Pi 4 with Buster OS. The autofocus isn’t working at all. I followed the starters guide from the site but nothing changed. Attached UC01.png showing what I get. Anyone know how to fix this?
Hey, welcome. From your post and screenshot, I think there’s a bit of a mix-up here. The camera you have is the Arducam 16MP Autofocus USB Camera (SKU B029001) with the IMX298 sensor — that’s a UVC (USB Video Class) camera, not a MIPI/IMX219 camera. The starters guide you followed is meant for MIPI cameras, so those steps don’t apply to your hardware. UVC cameras don’t need an extra camera driver installed. Try installing VLC and use it to preview the camera and capture stills, then check whether autofocus works there.
Thanks for the reply, but it’s still not resolved. I tried opening it in VLC and the autofocus is still not working right. Can someone from support take another look? Attaching the same screenshot again (UC01.png).
Just to reiterate: your device is a UVC camera, not a MIPI camera, so the instructions you originally followed aren’t correct for this hardware. UVC cameras do not require an additional camera driver. VLC should open it directly as a video device. When you open VLC, what exactly happens — does the preview stay blurry the whole time, or does it try to focus and fail?
I did some more testing and found something specific. When I run fswebcam or VLC directly from the terminal, the camera takes about 3-5 seconds to autofocus and then captures a perfectly fine image. But when I trigger the capture from Python — using os.system(‘fswebcam’), os.system(‘vlc’), or cv2.VideoCapture with 10-15 second delays — the camera fails to focus. My 8MP camera works perfectly in all of those scenarios. I’m starting to think the SONY sensor on the 16MP is faulty. Attaching UC01.png again.
Any update on this? To recap the Python issue: standalone fswebcam/vlc focuses after 3-5 seconds and captures fine, but the same capture launched from Python doesn’t focus even with 10-15 second delays. The 8MP camera works in every scenario.
Thanks for the extra detail — that actually tells us a lot. Since fswebcam and VLC both lock focus after 3-5 seconds and capture a good image when run directly, the camera and sensor are working. The problem only appears when capture is started from your Python code, so this points to how the script is starting/using the stream rather than a faulty sensor. For now, the reliable workaround is to keep using the standalone fswebcam command (or VLC) for stills. If you can paste the exact Python snippet — especially the cv2.VideoCapture setup, any warm-up frame reads, and how you’re implementing the delay — we can dig into why focus isn’t settling when it’s launched from Python.