Answers for "OpenCV VideoCapture lag"

0

OpenCV VideoCapture lag

According to this source, you can set the buffersize of a cv::VideoCapture object.

cv::VideoCapture cap;
cap.set(CV_CAP_PROP_BUFFERSIZE, 3); // internal buffer will now store only 3 frames
Posted by: Guest on February-04-2021
-1

opencv videocapture rtmp

myrtmp_addr = "rtmp://myip:1935/myapp/mystream"
cap = cv2.VideoCapture(myrtmp_addr)
frame,err = cap.read()
Posted by: Guest on August-29-2020

Browse Popular Code Answers by Language