- I flashed TX2 with Jetpack3.3
- I want to run Openpose on my TX2, so I deploy it as:
https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/installation_jetson_tx2_jetpack3.3.md
./scripts/ubuntu/install_caffe_and_openpose_JetsonTX2_JetPack3.3.sh
./build/examples/openpose/openpose.bin -camera_resolution 640x480 -net_resolution 128x96
I see the result from my USB CAMERA. However the camera is a deep camera.
I want to run it access board camera(/dev/video0)
- After I run this:
gst-launch-1.0 nvcamerasrc fpsRange="30.0 30.0" ! 'video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)I420, framerate=(fraction)30/1' ! nvtee ! nvvidconv flip-method=2 ! 'video/x-raw(memory:NVMM), format=(string)I420' ! nvoverlaysink -e
I have a window show image from board camera.
then Ctrl^C I finished it.
- restart command:
./build/examples/openpose/openpose.bin -camera_resolution 640x480 -net_resolution 128x96
However, there is nothing.
- I learn that:
OpenPose on NVIDIA Jetson TX2 | OpenPose | RidgeRun Developer
Note: For OpenCV to be able to access the Jetson’s on board camera via GStreamer, it is required to rebuild OpenCV after GStreamer has been installed.
$sudo apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-base libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-bad
$sudo apt-get purge libopencv*
$git clone https://github.com/jetsonhacks/buildOpenCVTX2.git
$cd buildOpenCVTX2
$./buildOpenCV.sh
I try to use camorama and cheese, they are not work.
camorama:
Could not connect to video device(/dev/video0) please check connection
cheese:
(cheese:23288):cheese-WARNING **: Device ‘/dev/video0’ cannot capture in the speccified format: gstv4l2object.c(3482): gst_v4l2_object_set_format_full (): /GstCameraBin:camerabin/GstWrapperCameraBinSrc:camera_source/GstBin:bin18/GstV4l2Src:v4l2src1:
Tried to capture in YU12, but device returned format BG10
until now, I still don’t know why I can’t use camera0, even when I want to return back, I can’t use USB camera.
please help me. I fix it whole day…