Trouble CSI camera on jetson Nano

Hi,
I try to use the Raspicam V2.1 with the jetsonNano as csi camera. I use ubuntu 18.04 and opencv 4.7 python 3.8
It work fine with gst-launch-1.0, and nvgstcapture-1.0. But I always get the following message “unable to open the camera” when I use simple_camera.py or tegra-cam.py.
I even try, jetcam but it is worse " could not initialize the camera"
Could you help me?

Thanks

I’d suspect that the opencv version installed for your python3.8 has been built without gstreamer support.
What gives:

python3 -c 'import cv2; print(cv2.getBuildInformation())'

# In my case with JP5 on Orin I get the following
...
  Video I/O:
  ...
    GStreamer:                   YES (1.16.3)

You are right I forgot to set the gstreamer option to ON.
Thanks

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