When I’m running the object detection script. the following problem occurs:
Any suggestions on why this might be?
thanks
[WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (1757) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src0 reported: Internal data stream error.
[ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (886) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
It would be very hard to guess with so few details.
You may provide your object detection code, or at least the videoCapture part with the gstreamer pipeline.
I don’t know about IMX219-200 in details, but I am unsure the driver provides jpeg format. Check with:
v4l2-ctl -d0 --list-formats-ext
My understanding would be that you would first install SDK from vendor (Seeed ?) including driver and maybe device tree.
Then as IMX219 is basically a bayer sensor, you would have to go with Argus that will handle debayering with ISP and auto-tune gains, exposure, white-balance…
So with gstreamer you would use nvarguscamerasrc plugin that would provide NV12 format into NVMM memory (you would then use nvvidconv for converting into BGRx and copy to system memory, then use videoconvert for providing BGR frames to opencv appsink.
But the simplest would just be using jetson-utils VideoSource with uri csi://0.
This uri is for jetson-utils VideoSource, not for gstreamer.
First check if your camera works in pure gstreamer mode (this would validate driver and Argus). This assumes that your Jeston is not headless, but have a monitor attached :
Got EOS from element "pipeline0".
Execution ended after 0:00:00.120951126
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
I think that if having done this, and especially if having to install a custom device tree you would remember as it is not obvious.
You may check if reading from V4L works:
Hi,
It looks like the camera source is not ready. You may contact camera vendor to help you enable the camera. Or can buy a Raspberry Pi camera v2 which is supported by default.