capture=cv2.VideoCapture(0)
出现警告:[ WARN:0] global C:\projects\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (674) SourceReaderCB::~SourceReaderCB terminating async callback
修改为:capture=cv2.VideoCapture(0,cv2.CAP_DSHOW)
(python 3.5)
capture=cv2.VideoCapture(0)
出现警告:[ WARN:0] global C:\projects\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (674) SourceReaderCB::~SourceReaderCB terminating async callback
修改为:capture=cv2.VideoCapture(0,cv2.CAP_DSHOW)
(python 3.5)