【发布时间】:2020-05-15 13:36:30
【问题描述】:
我使用 tensorflow object-detection API 训练了一个神经网络来解决简单的验证码,预测质量足够好,但是当我使用以下代码输出预测时:
for index, value in enumerate(classes[0]):
object_dict = {}
if scores[0, index] > threshold:
object_dict[(category_index.get(value)).get('name').encode('utf8')] = scores[0, index]
objects.append(object_dict)
每个函数运行时,我都会以随机顺序获得预测。是否可以按照对象在图片中的位置顺序得到预测的类?输出图片示例:
【问题讨论】:
标签: python tensorflow object computer-vision detection