Hi, I just received two of the B0182 IMX219 autofocus cameras and I can’t get either of them working. I’ve been following the instructions on the Arducam website to install the driver for the IMX219 autofocus camera, but when I get to the OpenCV installation step it keeps failing with a bunch of errors. I’ve tried running the install again a few times and it doesn’t help. Is there an updated installation guide for this? Not really sure what I’m doing wrong.
Sorry to hear that. Could you tell us a bit more about your setup? Which Raspberry Pi model are you using, and what OS/kernel version? Also, at what exact step does the OpenCV install fail, and do you have the error output handy?
I’m on a Raspberry Pi 4B with the latest Bullseye image, kernel 6.1 and later. The cameras are the Arducam IMX219 autofocus model (B0182). I followed the Arducam website driver install steps for the IMX219 autofocus camera, and it gets to the OpenCV part and then errors out. Re-running the installation from the beginning doesn’t change anything.
Can you share a screenshot of what you’re seeing when the installation fails? That would help figure out whether it’s a package/apt issue or something specific to the build step.
Sure, here’s what I’m seeing when the install fails. I’m not sure which part of the error is the important one.
Thanks for the screenshot. Before we dig into the OpenCV build errors, I’d like to check something more basic first. Since you’re on Bullseye with kernel 6.1+, let’s first confirm that the camera and the autofocus driver themselves are working using libcamera. If the camera side isn’t set up correctly, fixing the OpenCV install won’t help anyway. Can you follow this guide and test the autofocus functionality with libcamera?
Specifically, go to the IMX219 Motorized Focus Camera Quick Start Guide and open the “Enable the focus driver” section:
Run through that section first so the focus driver is loaded, then use libcamera to check whether the autofocus is actually working. Let me know the result. For now we haven’t confirmed the root cause of the OpenCV install failure, so the next step is verifying autofocus with libcamera first; we can come back to the OpenCV errors once we know the camera side is okay.