OpenCV:读取视频流(相机,视频,ip相机)
""" 读取视频流(相机,视频,ip相机)"""import cv2# url = "rtsp://admin/password@ip:port/live" # ip相机# cap = cv2.VideoCapture("./video/01.mp4") # 视频cap = cv2.VideoCapture(0) ...