Using IMX219 IC2 camera on a jetson xavier

Trying to get an IMX219 IC2 camera to work under python in a xavier NX running jet pack 5.3

The camera works fine if I type gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! ‘video/x-raw(memory:NVMM),width=1920,height=1080’ ! nvvidconv ! xvimagesink sync=false

However, when I try to use under python it just can’t find the camera.

I remember it used to work on a jetson nano using the command sourcecamera = cv2.VideoCapture(“nvarguscamerasrc ! video/x-raw(memory:NVMM), width=180, height=180, format=(string)NV12, framerate=(fraction)30/1 ! nvvidconv flip-method=2 ! video/x-raw, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink”)

I was using a compiled opencv 4.5.0 at the time

Is there anything specific of jetson xaviers that make them incompatible with that camera?

hello sequential_systems,

let me double confirm the Jetpack release version you’re now working with,
it should be Jetpack-5.1.3 (l4t-r35.5.0), right?
you may check release tag for confirmation.
for instance,
$ cat /etc/nv_tegra_release
# R35 (release), REVISION: 5.0, GCID: 35550185, BOARD: t186ref, EABI: aarch64, DATE: Tue Feb 20 04:46:31 UTC 2024

so… it’s the issue with python script you’re running with.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.