TypeError: can't convert list to int
-
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')
-
发全部的代码,否则没法运行。