找到检测到的对象的时间
当检测到对象时,我试图从视频文件开始时找到时间。 对象是锋利的灯光闪光灯,我想知道的是,如果我们可以在视频文件中看到光闪光灯的时间?
如果我尝试在开放式简历中以视频文件的形式提取事件的时间,则提供如下所示的3D数据。有人可以解释数据是什么意思,以及我如何确切地找到事件的时间(conotour)?
Number of contour found = 8
Hierarchy: [[[ 1 -1 -1 -1][ 2 0 -1 -1][ 3 1 -1 -1][ 4 2 -1 -1][ 5 3 -1 -1][-1 4 -1 -1]]]
产生结果的代码是:
contours, hierarchy = cv2.findContours(mask, mode=cv2.RETR_TREE,method=cv2.CHAIN_APPROX_NONE)
print("Hierarchy: ",hierarchy)
print("Number of contour found = ",len(contours))
我还试图关注事件的时间,但没有帮助
event = cap.get(cv2.CAP_PROP_POS_MSEC)
I am trying to find the time from the start of a video file when the object is detected.
The object is the sharp light flash, what I want to know is if we could find the time when the light flash is visible in video file?
If I try to extract time of event in video file in Open cv, it provides 3D data as given below. Can someone please Explain what does the data mean, and how exactly I can find the time of event(conotour)?
Number of contour found = 8
Hierarchy: [[[ 1 -1 -1 -1][ 2 0 -1 -1][ 3 1 -1 -1][ 4 2 -1 -1][ 5 3 -1 -1][-1 4 -1 -1]]]
The code that produce the result was:
contours, hierarchy = cv2.findContours(mask, mode=cv2.RETR_TREE,method=cv2.CHAIN_APPROX_NONE)
print("Hierarchy: ",hierarchy)
print("Number of contour found = ",len(contours))
I also tried following to find the time of event, but it didn't help
event = cap.get(cv2.CAP_PROP_POS_MSEC)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论