Comments and readme update
This commit is contained in:
17
check_stream.py
Normal file
17
check_stream.py
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
Reference in New Issue
Block a user