https://item.taobao.com/item.htm?spm=a1z09.2.0.0.47c42e8dlHq62O&id=44853597070&_u=s1qf7bf57485
import cv2 video_src="http://192.168.1.1:8080/?action=stream" cap = cv2.VideoCapture(video_src)#调整参数实现读取视频或调用摄像头 while 1: ret, frame = cap.read() if ret: pass else: continue cv2.imshow("cap", frame) if cv2.waitKey(11) & 0xff == ord('q'): break cap.release() cv2.destroyAllWindows()