Hi, I contacted support before about this but never got a response, so I’m posting here. The documentation and the sample code on GitHub are pretty far behind and honestly not helpful if you actually want to get this camera ready for a commercial product. I need an urgent answer because we want to use this camera in our products.
Setup: IMX477 MIPI AF camera on a Jetson Xavier NX.
Three things I need to know:
Does this camera have any API in addition to running the nvargus driver on GStreamer and using OpenCV with a GStreamer pipeline?
Do you have any proper sample code for the motorized focus version, so we can run autofocus continuously?
I cannot change the exposure as described for the nvargus driver. The camera runs properly with the pipeline below, but the exposure does not change no matter what values I set.
Hi, thanks for the detailed report. Sorry about the missed ticket earlier.
Before I can say anything useful about the exposure problem on the IMX477 MIPI AF + Xavier NX combination, I need to know exactly what system you’re running, because the nvargus/nvarguscamerasrc behavior and the exposure controls differ quite a bit between L4T releases. I can’t diagnose the exact problem without that information.
Could you please run the following on the Jetson and paste the output here?
System information:
uname -a
L4T release:
cat /etc/nv_tegra_release
Once I have those two outputs I can go through your three questions one by one and check what actually applies to your setup.
Here’s the system info you asked for. Note that the first two questions aren’t related to the system at all, so I don’t think the OS version changes the answers there. The third question (exposure) I already worked around on my own — I found a correct pipeline and the exposure now behaves as expected.
Linux ravinspect-desktop 4.9.201-tegra #1 SMP PREEMPT Fri May 14 06:19:02 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
# R32 (release), REVISION: 5.1, GCID: 26202423, BOARD: t186ref, EABI: aarch64, DATE: Fri Feb 19 16:50:29 UTC 2021
Here’s the terminal screenshot from the exposure issue thread, for reference:
So to be clear: exposure is solved with the corrected pipeline. What I still need is an answer on Q1 (API) and Q2 (continuous autofocus sample code).
Thanks, that’s exactly what I needed. Going through your questions one by one for the IMX477 MIPI AF on Jetson Xavier NX:
Q1 — Does this camera have any API in addition to running the nvargus driver on GStreamer and using OpenCV with a GStreamer pipeline?
No. There is no API available for the camera regarding these issues at the moment. On Jetson you’re working through the nvargus driver and nvarguscamerasrc (plus OpenCV on top of the GStreamer pipeline), which is what you’re already doing.
Q2 — Do you have proper sample code for motorized focus cameras to run autofocus continuously?
The Jetson cannot support continuous autofocus, so there’s no sample code for that. What is supported is manual focus and one-time focus with the camera. Refer to the sample code here:
So for the focus side, use that AF_LENS example and trigger focus manually / once, rather than expecting a continuous AF loop from the lens driver.
Q3 — Exposure: you already confirmed this is resolved on your side after finding a correct pipeline, so nothing further needed there.
Summary of where we are: no API is available for this camera at present, and continuous autofocus is not supported on Jetson — only manual and one-time focus are possible via the AF_LENS sample. Exposure is working with your corrected pipeline.
For reference, here’s the screenshot from this reply: