qq_35751820
_自由之翼_
2021-01-25 15:34

NanoPiM4如何把系统盘的摄像头文件vedio0或vedio1移植到ssd固态硬盘里并正确访问?

  • python

可以正常运行并拍照的代码:

cap = cv.VideoCapture('rkisp device=/dev/video0 io-mode=1 ! video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1 ! videoconvert ! appsink', cv.CAP_GSTREAMER)

把含有vedio0文件的dev文件夹移植到ssd固态硬盘里面 显示错误:


cap = cv.VideoCapture('rkisp device=media/nvme/dev/video0 io-mode=1 ! video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1 ! videoconvert ! appsink', cv.CAP_GSTREAMER)

错误信息:
[ WARN:0] global /mnt/opencv-build-scripts/opencv/modules/videoio/src/cap_gstreamer.cpp (1759) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module xcamsrc0 reported: Internal data stream error.
[ WARN:0] global /mnt/opencv-build-scripts/opencv/modules/videoio/src/cap_gstreamer.cpp (888) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global /mnt/opencv-build-scripts/opencv/modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

0条回答