OpenCv Python frame empty in mjpeg stream from webcam -
i'm creating program displays 4 mjpg cameras in grid, problem happens frame empty , stream freeze, capture error checking size of each frame, , if equal 1 continue cycle, problem remain in control loop, seems stream flow not able obtain valid frame, suggestion? import socket import numpy np import cv2 cap = cv2.videocapture("http://85.90.40.19/mjpg/video.mjpg") cap2 = cv2.videocapture("http://85.90.40.19/mjpg/video.mjpg") cap3 = cv2.videocapture("http://85.90.40.19/mjpg/video.mjpg") cap4 = cv2.videocapture("http://85.90.40.19/mjpg/video.mjpg") cv2.namedwindow('frame', cv2.wnd_prop_fullscreen) cv2.setwindowproperty('frame', cv2.wnd_prop_fullscreen, cv2.window_fullscreen) while true: try: ret, frame = cap.read() ret2, frame2 = cap2.read() ret3, frame3 = cap2.read() ret4, frame4 = cap2.read() except: print("try catch") continue size = np...