Poor image quality after flashing

Hi, I am having issues with the camera quality of a Raspberry Pi high quality camera that is connected to my Jetson Orin Nano

I had to refresh my Nvidia Jetson Orin Nano after having boot issues. I think the previous version of Jetpack was 6.0, but after having issues with flashing 6.0 on the board, I chose 6.1 and that worked. Setting up the camera configuration with Jetson-io proved to be difficult, but following a guide a found online:

" create a new boot configuration in /boot/extlinux/extlinux.conf copying from the default primary

add in new configuration the following line

FDT /boot/dtb/kernel_tegra234-p3768-0000+p3767-0005-nv.dtb

where the file /boot/dtb/kernel_tegra234-p3768-0000+p3767-0005-nv.dtb is a copy of /boot/tegra234-p3768-0000+p3767-0005-nv.dtb

reboot the board and select the new boot option

when the system start you can succesfully run jetson-io.py

Basically with this fix you use the kit without the new super mode»

After setting up the camera, the images are quite blurry, while I am still using the same python code to capture images, as well as testing with nvgstcapture.

This is the code I have been using, and that gave me good pictures before the flash:

def gstreamer_pipeline(
sensor_id=0,
capture_width=CAMERA_WIDTH,
capture_height=CAMERA_HEIGHT,
display_width=CAMERA_WIDTH,
display_height=CAMERA_HEIGHT,
framerate=21,
flip_method=0,
):
return (
"nvarguscamerasrc sensor-id=%d ! "
"video/x-raw(memory:NVMM), width=(int)%d, height=(int)%d, framerate=(fraction)%d/1 ! "
"nvvidconv flip-method=%d ! "
"video/x-raw, width=(int)%d, height=(int)%d, format=(string)BGRx ! "
"videoconvert ! "
“video/x-raw, format=(string)BGR ! appsink”
% (
sensor_id,
capture_width,
capture_height,
framerate,
flip_method,
display_width,
display_height,
)
)

    camera = cv2.VideoCapture(gstreamer_pipeline(flip_method=2), cv2.CAP_GSTREAMER)

Here are the images before and after:


Any tips?

hello oscarer,

did you applied camera override files?
please check whether you’ve /var/nvidia/nvcam/settings/camera_overrides.isp

Hi
No, they are not there. How do I apply them?

Additionally, which camera driver is the correct one? IMX477-?

hello oscarer,

the question is more like… had you applied camera override files before?
if no, did you meant a native JP-6.0/IMX219 has better image quality?

Hei
The only thing i did before was to use the jetson-io tool to set the expansion header to imx477, if that is what you mean

hello oscarer,

let me double check the camera setups, is it Raspberry Pi, IMX477 on Jetson Orin Nano developer kit?
the only difference is… JP-6.0 v.s. JP-6.1?

Yes that is correct, and I also tried with JP-6.2, and have the same result. But I have no camera override file in /var/nvidia/nvcam/settings/camera_overrides.isp, is that also how it should be after it is configured with jetson-io? On boot it states that it is using the kernel with the IMX477 config

hello oscarer,

we’re able to reproduce the same issue on developer kit, i.e. JP-6.2 with blurry capture results
let me arrange resources for investigation, will update after we have conclusions.