TensorFlow Object Detection API print objects found on image to console

前端 未结 6 1774
星月不相逢
星月不相逢 2021-02-01 06:31

I\'m trying to return list of objects that have been found at image with TF Object Detection API.

To do that I\'m using print([category_index.get(i) for

6条回答
  •  不知归路
    2021-02-01 06:50

    open visualization_utils.py and add--> print(class_name) after

    else:        
     class_name = 'N/A'
          display_str = '{}: {}%'.format(
              class_name,
              int(100*scores[i])) 
    

    this will print the detected objects

提交回复
热议问题