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

猜你喜欢

转载自blog.csdn.net/qq_31261509/article/details/88911429