延迟使用rtsp从IP摄像机读取帧

时间:2019-01-29 00:38:40

标签: python opencv rtsp

  1. 我有一个使用ntp的网络摄像机将日期/时间与我的服务器同步
  2. 摄像机在视频流上标记日期/时间
  3. 在使用python3.6的服务器中,cv2 3.4.2
  4. 在专用线程中,我提取了一个框架(已读取)
  5. 然后我用服务器的时间装饰图像
    self.video = cv2.VideoCapture(self.videoURL)
    self.video.set(cv2.CAP_PROP_BUFFERSIZE,2)

    while 1:
       status,frm=self.video.read()
       if status:
           decorated=decorate_frame_with_server_time(frm) #using .putText
           cv2.imshow("image",frm)

我在两个时间戳上相差约8秒

感谢您的帮助

P.S。我尝试更改CAP_PROP_BUFFERSIZE,但没有帮助。

0 个答案:

没有答案
相关问题