检测视频中缺少的对象 [英] Detect missing objects in a video

查看:88
本文介绍了检测视频中缺少的对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何使用类似于YOLO的东西来检测丢失的物体?假设我有第一个视频记录智能手机,钥匙和护照.然后,我还有另一个仅捕获智能手机和按键的视频,是否可以发出警告,指出缺少物体?

I was wondering how can a missing object be detected using something similar to YOLO? Let's say I have the first video capturing a smartphone, keys and a passport. Then I have another video capturing the smartphone and keys only, is it possible to put up a warning stating that there is an object missing?

推荐答案

是.如果使用的是python版本的AlexeyAB darknet,则可以在此行中看到所有检测到的内容:

Yes. If you are using the python version of AlexeyAB darknet, you can see all the detections in this line:

https://github.com/AlexeyAB/darknet/blob/master/darknet_video.py#L81

然后在数组中搜索标签,如果标签不在该数组中,则返回警告或执行所需的操作.

Then search for the labels in the array and if a label is not in that array, you return a warning or do whatever you need.

if b'smartphone' not in detections[0]
     print('Warning')

这篇关于检测视频中缺少的对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆