Files
HPE_mediapipe/check_stream.py
2022-02-08 20:02:14 +07:00

17 lines
340 B
Python

import cv2
address_input = "http://localhost:8080"
cap = cv2.VideoCapture(address_input)
while True:
# Reading frame
success, img = cap.read()
if success:
cv2.imshow("Main", img)
else:
print("Frame not success read")
# Interface
key = cv2.waitKey(1)
if key == 27:
break