如何在tensorflow中访问被检测对象的名称?

2024-05-10 01:04:36 发布

您现在位置:Python中文网/ 问答频道 /正文

我正试图从这个代码访问实时流中检测到的对象名称

https://github.com/datitran/object_detector_app/blob/master/object_detection_app.py

我尝试了以下代码

print [category_index.get(value) for index,value in enumerate(classes[0]) if scores[0,index] > 0.5]

输出如下所示:

enter image description here

如何访问人员数据?你知道吗


Tags: 对象代码httpsgithubmaster名称comapp