Hey,
I am having problems using cv2 to open my ımx camera on jetson orin nano.
When ı try to open the camera in terminal with nvgstcapture it works but whenever ı try to open it with my cv2 ı am getting this error code
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:754 Invalid camera device specified 1 specified, 0 max index
[ WARN:0] global /tmp/build_opencv/opencv/modules/videoio/src/cap_gstreamer.cpp (1100) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
Error: Could not read frame.
I believe there is a problem with my build. I tried to build by following GitHub - mdegans/nano_build_opencv: Build OpenCV on Nvidia Jetson Nano. And option to download Gstreamer support is on there.
But weirdly Gstreamer support seems on when ı look to python2 but not on python3 (ı checked with cv2.getBuildInformation())
So ı said maybe it works with python 2 and ı am getting the same errors.
why its not ON in python3. How can ı fix it and does it solve my problem? Does anyone had the same problem?
Thank you for your answers