Hi, hoping someone can help. I’ve got an Arducam 12MP 477P Motorized Focus High Quality Camera (the one listed for Jetson Nano/Xavier NX/AGX Orin/Orin Nano/Orin NX) on a Jetson Orin Nano Developer Kit, and I’m having driver trouble. sudo python3 JetsonCamera.py works, but plain python3 JetsonCamera.py fails with an error that the camera cannot be opened. I’m also testing a UCTRONICS IMX477 12MP with an M12 lens. Datamatrix/text capture quality is fine at ~25 cm but really bad past ~40 cm, and I need to capture at ~1 m. I also want to control shutter speed — is there documentation for the camera control libraries? And separately, does the Arducam IMX519 autofocus module (B0371) work on the Orin Nano?
Cannot find the corresponding deb package, please send the following information to [email protected]
Kernel version: 5.10.192-tegra-35.5.0-20240613202628
Jetson type: NVIDIA Orin Nano Developer Kit
That’s the clue. The kernel string 5.10.192-tegra-35.5.0 corresponds to L4T 35.5.0, but the IMX477 driver package was debugged for L4T 36.3.0 (JetPack 6.0). On that unsupported L4T/kernel version the deb-package lookup reports the Jetson type as UNKNOWN, so no matching package exists. Flash the Orin Nano to L4T 36.3.0 (JetPack 6.0), then rerun the installer.
I reflashed with JetPack 6.0 / L4T 36.3.0 and the installer completed this time — the camera works now. I’m in ~/MIPI_Camera/Jetson/IMX477/AF_LENS and the directory has Autofocus.py, Focuser.py, JetsonCamera.py, and FocuserExample.py. I’ve been using FocuserExample.py for the datamatrix/text captures. But the sudo problem is still there: sudo python3 JetsonCamera.py opens the camera, python3 JetsonCamera.py without sudo says the camera cannot be opened.
That non-sudo failure is a permissions/environment issue. The cleanest fix is to create a Python virtual environment and run the script from inside it — that avoids needing sudo just to open the camera.
Thanks, that got it running without sudo. Back to the image quality: with FocuserExample.py the datamatrix/text is good at ~25 cm but soft/unusable past ~40 cm, and I need ~1 m. Is this just a lens thing or does the script need work?
A bit of both. The M12 lens focus is adjusted by screwing the lens, so at 1 m you’ll likely need to refocus. Also, FocuserExample.py is a basic example — the focus routine in it usually needs to be refined for a specific working distance. Adjust the M12 lens mechanically and tune the FocuserExample.py settings for your 1 m setup.
To recap where things landed: the IMX477 Cannot find the corresponding deb package error was the L4T version — flashing JetPack 6.0 (L4T 36.3.0) fixed it. Non-sudo camera access works through a Python venv. The 1 m focus problem is manual M12 lens adjustment plus refining FocuserExample.py, and exposure/gain (shutter) control is covered in the troubleshooting doc I linked.