Detect missing objects in a video

蓝咒 提交于 2021-02-11 12:07:00

问题


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?


回答1:


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')


来源:https://stackoverflow.com/questions/63888569/detect-missing-objects-in-a-video

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!