【问题标题】:Coral edge TPU Classification coordinates珊瑚边缘 TPU 分类坐标
【发布时间】:2020-06-22 22:07:38
【问题描述】:

我正在使用 Raspberry pi 4、模型 B、珊瑚边缘 TPU 运行我的对象分类。我正在使用此命令对图像进行分类。

‘model.classify_with_image(frame, threshold=args[“confidence”])’ 

它工作得很好,但它没有给我类似的坐标

‘model.detect_with_image()’

有什么办法可以得到坐标吗?

来自官方文档:

detection:
detect_with_image(img, threshold=0.1, top_k=3, keep_aspect_ratio=False, 
relative_coord=True, resample=0)
classification:
classify_with_image(img, threshold=0.1, top_k=3, resample=0)

【问题讨论】:

    标签: python tensorflow google-coral


    【解决方案1】:

    分类模型不应该输出任何坐标,它们只输出与标签相关的 0 到 1 之间的概率数组。如果您希望输出包含对象坐标等,则需要对象检测模型。 以下是一些我建议您可以查看的文档: https://www.tensorflow.org/lite/models/image_classification/overview https://www.tensorflow.org/lite/models/object_detection/overview

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-20
      • 2020-06-01
      相关资源
      最近更新 更多