ZED encodes both of it’s left/right video frames side-by-side, so you probably wouldn’t want to pass it through detectNet without cropping the image to be only the left or right image first. For an example of that, see this example of using cudaCrop() function -
glDisplay video options:
------------------------------------------------
-- URI: display://0
- protocol: display
- location: 0
-- deviceType: display
-- ioType: output
-- codec: raw
-- width: 1360
-- height: 768
-- frameRate: 0.000000
-- bitRate: 0
-- numBuffers: 4
-- zeroCopy: true
-- flipMethod: none
-- loop: 0
------------------------------------------------
[gstreamer] opening gstCamera for streaming, transitioning pipeline to GST_STATE_PLAYING
[gstreamer] gstreamer changed state from NULL to READY ==> mysink
[gstreamer] gstreamer changed state from NULL to READY ==> capsfilter0
[gstreamer] gstreamer changed state from NULL to READY ==> v4l2src0
[gstreamer] gstreamer changed state from NULL to READY ==> pipeline0
[gstreamer] gstreamer changed state from READY to PAUSED ==> capsfilter0
[gstreamer] gstreamer stream status CREATE ==> src
[gstreamer] gstreamer changed state from READY to PAUSED ==> v4l2src0
[gstreamer] gstreamer changed state from READY to PAUSED ==> pipeline0
[gstreamer] gstreamer stream status ENTER ==> src
[gstreamer] gstreamer message new-clock ==> pipeline0
[gstreamer] gstreamer message stream-start ==> pipeline0
[gstreamer] gstreamer changed state from PAUSED to PLAYING ==> capsfilter0
[gstreamer] gstreamer changed state from PAUSED to PLAYING ==> v4l2src0
video-viewer: failed to capture video frame
video-viewer: failed to capture video frame
video-viewer: failed to capture video frame
and same thing happened with /dev/video0
By the way my jetpack is
should i downgrade jetpack to 4.2 as you shared in your github page:
when i run camera-capture /dev/video0
it shows:
sadsavunma@sadsavunma-desktop:/media/sadsavunma/SD/jetson-inference/python/training/classification$ camera-capture /dev/video0
[gstreamer] initialized gstreamer, version 1.14.5.0
[gstreamer] gstCamera – attempting to create device v4l2:///dev/video0
(camera-capture:15131): GStreamer-CRITICAL **: 08:48:00.943: gst_element_message_full_with_details: assertion 'GST_IS_ELEMENT (element)' failed
(camera-capture:15131): GStreamer-CRITICAL **: 08:48:00.944: gst_element_message_full_with_details: assertion 'GST_IS_ELEMENT (element)' failed
[gstreamer] gstCamera -- didn't discover any v4l2 devices
[gstreamer] gstCamera -- device discovery failed, but /dev/video0 exists
[gstreamer] support for compressed formats is disabled
[gstreamer] gstCamera pipeline string:
[gstreamer] v4l2src device=/dev/video0 ! appsink name=mysink
[gstreamer] gstCamera successfully created device v4l2:///dev/video0
[video] created gstCamera from v4l2:///dev/video0
------------------------------------------------
gstCamera video options:
------------------------------------------------
-- URI: v4l2:///dev/video0
- protocol: v4l2
- location: /dev/video0
-- deviceType: v4l2
-- ioType: input
-- codec: unknown
-- width: 1280
-- height: 720
-- frameRate: 30.000000
-- bitRate: 0
-- numBuffers: 4
-- zeroCopy: true
-- flipMethod: none
-- loop: 0
------------------------------------------------
camera-capture: successfully initialized video device (1280x720)
[OpenGL] glDisplay -- X screen 0 resolution: 1360x768
[OpenGL] glDisplay -- X window resolution: 1290x730
[OpenGL] glDisplay -- display device initialized (1290x730)
[gstreamer] opening gstCamera for streaming, transitioning pipeline to GST_STATE_PLAYING
[gstreamer] gstreamer changed state from NULL to READY ==> mysink
[gstreamer] gstreamer changed state from NULL to READY ==> v4l2src0
[gstreamer] gstreamer changed state from NULL to READY ==> pipeline0
[gstreamer] gstreamer stream status CREATE ==> src
[gstreamer] gstreamer changed state from READY to PAUSED ==> v4l2src0
[gstreamer] gstreamer changed state from READY to PAUSED ==> pipeline0
[gstreamer] gstreamer message new-clock ==> pipeline0
[gstreamer] gstreamer changed state from PAUSED to PLAYING ==> v4l2src0
[gstreamer] gstCamera -- end of stream (EOS)
[gstreamer] gstreamer stream status ENTER ==> src
[gstreamer] gstreamer message stream-start ==> pipeline0
[gstreamer] gstreamer v4l2src0 ERROR Internal data stream error.
[gstreamer] gstreamer Debugging info: gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
[gstreamer] gstreamer changed state from READY to PAUSED ==> mysink
camera-capture: failed to capture RGBA image from camera
camera-capture: failed to capture RGBA image from camera
camera-capture: failed to capture RGBA image from camera
camera-capture: failed to capture RGBA image from camera
^Creceived SIGINT
camera-capture: failed to capture RGBA image from camera
camera-capture: shutting down...
[gstreamer] gstCamera -- stopping pipeline, transitioning to GST_STATE_NULL
[gstreamer] gstCamera -- pipeline stopped
camera-capture: shutdown complete.
sadsavunma@sadsavunma-desktop:/media/sadsavunma/SD/jetson-inference/python/training/classification$
You can stay with JetPack 4.4.1 - I would not downgrade to 4.2.
It doesn’t seem to be getting any data from the camera. Are you able to confirm that the sample(s) that come with the ZED SDK are able to show the video?
Unfortunately.
Even zed was working without installing sdk. Now show this error and while run with jetson’s own camera.
Actually black screen problem solved but now camera freeze.
I also opened a topic for freezing here
And only i run
Cv.videoCapture(1) for usb camera it’s working but freezing