简体   繁体   English

如何找到网络摄像机捕获的帧的准确捕获时间?

[英]How to find the accurate time of capturing a frame captured by an IP camera?

We use an IP camera and by OpenCV, capturing frame is done.我们使用 IP 摄像头并通过 OpenCV 完成捕获帧。 Because of running heavy weight image processing program, sometimes capturing a frame last 50 millisecond.由于运行重量级的图像处理程序,有时捕获一帧最后 50 毫秒。 How we can find the accurate time of capturing that frame?我们如何找到捕获该帧的准确时间? The accepted error is about 5 millisecond.可接受的误差约为 5 毫秒。

根据 opencv doc,VideoCapture 类的 get 公共方法(带有选项 CAP_PROP_POS_MSEC)以毫秒为单位提供视频文件的当前位置。因此它不适用于您从 rtsp 流中抓取的帧。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM