【问题标题】:how to save the name of the detected objects from tensorflow api object detection in a text file?如何将 tensorflow api 对象检测中检测到的对象的名称保存在文本文件中?
【发布时间】:2018-09-26 12:47:09
【问题描述】:

我正在通过以下链接使用 tensorflow api 进行对象检测” https://github.com/tensorflow/models/tree/master/research/object_detection

我想准确地获得检测到的类名称的语音输出..我想首先我应该创建一个包含检测到对象名称的文本文件...如何创建文本文件?

【问题讨论】:

标签: python-3.x tensorflow machine-learning raspberry-pi3 object-detection


【解决方案1】:

您可以通过在可视化.py 类中的 draw_bounding_box_on_image 函数(第 118 行)中使用“display_str_list[0]”以字符串形式获取检测到的对象的名称。

例如,您可以在控制台上显示检测到的对象的名称;

print(display_str_list[0])

你应该把它放在 draw_bounding_box_on_image 函数里面(在第 118 行)。

【讨论】:

    猜你喜欢
    • 2023-03-23
    • 1970-01-01
    • 2018-01-17
    • 1970-01-01
    • 2019-11-09
    • 2017-12-02
    • 1970-01-01
    • 1970-01-01
    • 2018-01-14
    相关资源
    最近更新 更多