获取实时数据
import cv2
# user: admin
# pwd: 12345
# main: 主码流
# ip: 192.168.1.64
# Channels: 实时数据
# 1: 通道
cap = cv2.VideoCapture(rtsp://admin:12345@192.168.1.64/main/Channels/1)
print (cap.isOpened())
while cap.isOpened():
success,frame = cap.read()
cv2.imshow(frame,frame)
cv2.waitKey(1)
获取回
2021-11-19 18:31:40
26KB
c
c++
nc
1