super slow opencv cv2.VideoCapture('rtsp://) python

Viewed 333

im trying to read a IP camera stream trought rtps. I can open the stream inside opencv but its stremly slow and its generating a huge delay from real movement and screen movment.

there is my code ( its simple )

import cv2
stream = cv2.VideoCapture('rtsp://root:root@192.168.0.2/media.amp')
while True:
    frame = stream.read()
    cv2.imshow("Frame",frame)
    cv2.waitKey(1)
0 Answers
Related