OpenCV Interactive Camera Calibration on Jetson NX

Trying to run the OpenCV Interactive_camera_calibration.

It looks like it’s using v4l2src adn I can’t get it to work

Any idea or experience?

Hi,
Please follow the steps in


to make sure the camera can be successfully launched first.

Result:

Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn’t want to preroll.
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …

Hi,
Please check what is listed in v4l2-ctl and configure format,width,height,framerate to gstreamer pipeline. The error shows you don’t configure the mod e correctly.

v4l2-ctl -d /dev/video1 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: ‘RG10’
Name : 10-bit Bayer RGRG/GBGB
Size: Discrete 4032x3040
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 1920x1080
Interval: Discrete 0.017s (60.000 fps)

Hi,
Your camera is Bayer sensor and should use Argus. If you buy it from our camera partners, the sensor driver is ready and you can simply run

$ gst-launch-1.0 nvarguscamerasrc ! nvoverlaysink

If it is not from our partners, you would need to refer to Camera Development in developer guide and port the sensor driver.

Yes,

I have the camera running with gst-launch-1.0 nvarguscamerasrc, but the problem is that it’s not working with the opencv interactive-camera-calibration

/Fredrik

Hi,
The opencv sample may not work. You would need to utilize gstreamer. Please refer to the sample in source code package:
https://developer.nvidia.com/embedded/L4T/r32_Release_v4.3/Sources/T186/public_sources.tbz2

source\public\opencv-sample-apps\opencv_camera