Face/play.py

14 lines
383 B
Python
Raw Normal View History

2024-07-29 11:24:25 +08:00
import cv2
cap = cv2.VideoCapture("rtsp://admin:2020@uestc@192.168.30.83:554/h264")
ret, frame = cap.read()
h, w = frame.shape[:2]
print("hight:"+str(h)+"with:"+str(w))
fps = cap.get(cv2.CAP_PROP_FPS)
print(fps)
# while ret:
# cv2.imshow('out', frame)
# if cv2.waitKey(1) & 0xFF == ord('q'):
# break
# ret, frame = cap.read()
cap.release()
cv2.destroyAllWindows()