while(True):
clock.tick()
img = sensor.snapshot()
# default settings just do one detection... change them to search the image...
for obj in tf.classify(net, img, min_scale=1.0, scale_mul=0.8, x_overlap=0.5, y_overlap=0.5):
print("**********\nPredictions at [x=%d,y=%d,w=%d,h=%d]" % obj.rect())
img.draw_rectangle(obj.rect())
# This combines the labels and confidence values into a list of tuples
predictions_list = list(zip(labels, obj.output()))#这句它一直报错
output_str="%d" % (predictions_list)
print('you send:',output_str)
uart.write(output_str+'\r\n')
G
g2s5
@g2s5
0
声望
1
楼层
266
资料浏览
0
粉丝
0
关注
g2s5 发布的帖子
-
TypeError: can't convert list to int