Trying to run the embedded code example from Matlab on the Jetson TX2

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?

답변 (1개)

Ramakrishna Mandalapu
Ramakrishna Mandalapu 2021년 7월 19일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기

질문:

2018년 5월 29일

답변:

2021년 7월 19일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by