I’m trying to get an Arducam B0429 camera working on my Jetson Nano 4GB. I installed the drivers following the Jetvariety quick start guide, and the camera does show up as /dev/video0. But when I run python3 arducam_displayer.py it dies with:
Can you share a couple of details to narrow this down? Which L4T/Jetpack version are you running, and can you paste the output of v4l2-ctl --list-formats-ext -d /dev/video0? That QBUF error usually points at a mismatch between the buffers/formats the app requests and what the driver actually provides.
I tested a B0429 today on L4T 32.7.3 and it worked fine, so the camera itself is capable. The two formats you listed (Y16 16-bit greyscale and BA10 10-bit Bayer GRGR/BGBG) with those 1920x1200/1080/720 sizes look correct for this sensor. The VIDIOC_QBUF failure at this stage often comes down to a driver/kernel version mismatch. Can you confirm which L4T/Jetpack version you’re actually on?
nano@nano-desktop:~$ ls /dev/video*
/dev/video0
nano@nano-desktop:~$ cd MIPI_Camera/Jetson/Jetvariety/example
nano@nano-desktop:~/MIPI_Camera/Jetson/Jetvariety/example$ python3 arducam_displayer.py -d 0
Hardware is: NVIDIA Jetson Nano (4 GB ram)
Firmware Version: 65539
Sensor ID: 0x0A56
Serial Number: 0xADF1E5E5
select timeout
VIDIOC_DQBUF: Resource temporarily unavailable
Traceback (most recent call last):
File "arducam_displayer.py", line 143, in <module>
display(cap, arducam_utils, args.fps)
File "arducam_displayer.py", line 53, in display
frame = frame.reshape(int(h), int(w))
AttributeError: 'NoneType' object has no attribute 'reshape'
It gets past init fine (firmware version, sensor ID, serial number all print), then select timeout and VIDIOC_DQBUF: Resource temporarily unavailable, and then the reshape crashes because frame is None.
Thanks, that log is really helpful. Jetpack 4.6.1 is a stable release and should generally be fine. The key issue: the camera enumerates but no frame ever arrives — select timeout then VIDIOC_DQBUF: Resource temporarily unavailable, which means frame is None, hence the AttributeError in display(). Before we go further, are you using the official Jetson Nano carrier board or a third-party board? Some third-party carrier boards cause exactly this capture timeout.
Thanks for confirming. Given that, the main suspect is your L4T version. I verified 32.7.3 on my side and it worked. Your 32.7.1 hasn’t been confirmed working yet. Two things to try:
If possible, reflash the Jetson to L4T 32.7.3 — that’s the version I tested against today.
If you have another Jetson Nano around, try the camera on it as well to rule out a board-specific issue.
Update: I got it working on the official carrier board. I had 3 boards total, and after tweaking the example code a bit it finally worked on the official one — so it seems to have been a hardware thing. But now the image is really dark. I need to adjust exposure/brightness to get a usable image without killing the FPS.
Also, out of curiosity, why would it not work at all on the unofficial J01 carrier board?
Right, so looking at that control list — there’s no brightness, contrast, or color control exposed at all. Those parameters are typically applied after the image has gone through the ISP (Image Signal Processor), so they aren’t available as V4L2 controls on this camera. What you do have is:
User Controls: exposure, horizontal/vertical flip, trigger_mode, disable_frame_timeout, frame_timeout, frame_rate
So for brightening the image, your realistic knobs are exposure and analogue_gain. There’s no direct brightness/contrast/color control I can give you here.
Unfortunately that’s an expected trade-off. Increasing exposure means each frame is exposed longer, so the per-frame capture time goes up and the number of frames per second you can process goes down. Exposure time per frame and frame rate are inversely related — there’s no way around that with this sensor. You’d have to pick a balance between brightness and FPS for your use case.
Even at default exposure the image is dark. Is there any auto-exposure mode? For comparison, I use an Arducam B0348 on a Raspberry Pi and it produces fine images with no manual adjustment at all. The B0429 on the Jetson comes out dark and out of focus. I need to get this sorted out — this is pretty critical for the project.
The B0348 on Raspberry Pi looks better because the Raspberry Pi’s ISP does a lot of heavy lifting that the Jetson simply doesn’t have for these cameras. On Jetson there’s no auto-exposure path for this sensor — you have to set exposure manually via the control.
As for the focus issue: the B0429 uses an M12 lens, which you can physically screw in/out to focus. That’s not a software problem — you’ll need to adjust the lens by hand while watching the image.
I have to say I’m disappointed. The B0429 is more expensive than the B0348, and the Jetson Nano has a much more powerful GPU than the Raspberry Pi, yet the image quality is worse. I shared a comparison image — an e-con system camera on the left and the B0429 on the right — and the difference is pretty bad. This really feels like the software just needs proper tuning.
I’m sorry for the frustration. To be transparent, the Jetvariety camera’s ISP algorithm support is limited on the Jetson platform, and that’s what’s capping the image quality. We can’t match what the Raspberry Pi’s ISP or the e-con system camera produces on this platform right now. I don’t have a software fix to offer for that.
Given that, is there anything I can do in OpenCV post-processing to fix it? The frames have low brightness and a green tint. Could I at least fine-tune the color output in OpenCV?
I don’t have a specific OpenCV approach I can recommend for improving the color on this. OpenCV gives you tools for manipulating and analyzing images, but it won’t enhance the underlying color/brightness in a way that recovers what the ISP would normally do. There’s no supported method I can point you to for correcting the green cast and low brightness here. That’s where things stand at the moment.