Trying to run the embedded code example from Matlab on the Jetson TX2
1 view (last 30 days)
Show older comments
Hello,
I am trying to run the example from this link:
https://www.mathworks.com/help/gpucoder/examples/running-an-embedded-application-on-the-nvidia-r-jetson-tx2-developer-kit.html
On my TX2 board. When I finally do go to run it I get these errors:
nvidia@tegra-ubuntu:~/Desktop/codegen/lib/alexnet_predict$ ./alexnet_exe /dev/video1 VIDEOIO ERROR: libv4l unable convert to requested pixfmt VIDEOIO ERROR: libv4l unable to ioctl VIDIOCSPICT
OpenCV(3.4.1-dev) Error: Unspecified error (GStreamer: unable to start pipeline ) in cvCaptureFromCAM_GStreamer, file /home/nvidia/opencv/modules/videoio/src/cap_gstreamer.cpp, line 890 VIDEOIO(cvCreateCapture_GStreamer(CV_CAP_GSTREAMER_V4L2, reinterpret_cast<char *>(index))): raised OpenCV exception:
OpenCV(3.4.1-dev) /home/nvidia/opencv/modules/videoio/src/cap_gstreamer.cpp:890: error: (-2) GStreamer: unable to start pipeline in function cvCaptureFromCAM_GStreamer
Could not open the video capture device.
I have not been able to find anything helpful with troubleshooting this problem. I was wondering if anyone else has run into this issue?
0 Comments
Answers (1)
Ramakrishna Mandalapu
on 19 Jul 2021
Hi Thomas,
From the error message I can expect that you are trying to use the onboard camera on TX2 than a USB web camera. So, please connect a web camera and re run the example. OpenCV can not capture the onboard camera data since its interface is different.
Ramakrishna
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!