珊瑚边TPU分类坐标
Coral edge TPU Classification coordinates
我运行我的对象分类使用Raspberry pi4,型号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)
分类模型不应该输出任何坐标,它们只输出与标签关联的 0 到 1 之间的概率数组。如果您希望输出包含对象坐标等,则需要对象检测模型。
以下是我建议您可以查看的一些文档:
https://www.tensorflow.org/lite/models/image_classification/overview
https://www.tensorflow.org/lite/models/object_detection/overview
我运行我的对象分类使用Raspberry pi4,型号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)
分类模型不应该输出任何坐标,它们只输出与标签关联的 0 到 1 之间的概率数组。如果您希望输出包含对象坐标等,则需要对象检测模型。 以下是我建议您可以查看的一些文档: https://www.tensorflow.org/lite/models/image_classification/overview https://www.tensorflow.org/lite/models/object_detection/overview