【发布时间】:2020-05-19 12:43:55
【问题描述】:
我使用 tensorflow 对象检测 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 computer-vision captcha object-detection-api