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?