OpenCV调用usb摄像头出现“select timeout”解决方法
解决方案:
import cv2
#first camera src
cap = cv2.VideoCapture(0)
# set the format into MJPG in the FourCC format
cap.set(cv2.CAP_PROP_FOURCC,cv2.VideoWriter_fourcc('M','J','P','G'))
OpenCV调用usb摄像头出现“select timeout”解决方法
解决方案:
import cv2
#first camera src
cap = cv2.VideoCapture(0)
# set the format into MJPG in the FourCC format
cap.set(cv2.CAP_PROP_FOURCC,cv2.VideoWriter_fourcc('M','J','P','G'))