TX2 调用 opencv出现 GStreamer: unable to start pipeline

今天安装上了opencv后发现用脚本

  • cv2.Capture(0)

打不开摄像头,于是查资料发现了如何打开,

cv2.VideoCapture("nvcamerasrc ! video/x-raw(memory:NVMM), width=(int)640, height=(int)480, format=(string)I420, framerate=(fraction)30/1 ! nvvidconv ! video/x-raw, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink")

https://github.com/opencv/opencv/issues/11059

你可能感兴趣的:(Opencv3笔记)