如何在张量流对象检测中获取特定类的Bbox坐标?

时间:2020-02-11 07:28:20

标签: tensorflow object coordinates detection

如何只绘制特定类别的框而不是所有类别的框?

          [boxes, scores, classes, num_detections],
          feed_dict={image_tensor: image_np_expanded})
      # Visualization of the results of a detection.
      # print(scores)
      vis_util.visualize_boxes_and_labels_on_image_array(
          image_np,
          np.squeeze(boxes),
          np.squeeze(classes).astype(np.int32),
          np.squeeze(scores),
          category_index,
          use_normalized_coordinates=True,
          line_thickness=4,
          min_score_thresh=0.9)```

0 个答案:

没有答案