logo

从Edge Impulse上导入的程序可以框选物体并返回检测物体的坐标吗?

2021-03-13 11:48
U
kzv4
  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()))

        for i in range(len(predictions_list)):
            print("%s = %f" % (predictions_list[i][0], predictions_list[i][1]))

    print(clock.fps(), "fps")
2021-03-15 13:44
I
网红小智智 星瞳科技

不能,因为目前只是分类,不是目标检测。