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