I read Ip camera but 500ms latency occurred on camera view. How can I decrease this value?
import cv2
cap = cv2.VideoCapture("rtsp:admin:admin@192.168.1.108/mpeg4 ")
while(True):
ret, frame = cap.read()
cv2.imshow("frame",frame)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
cap.release()
cv2.destroyAllWindows()
出现延迟的原因及其解决方案可在此处找到: https : //www.pyimagesearch.com/2017/02/06/faster-video-file-fps-with-cv2-videocapture-and-opencv /
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.