TensorFlow Object Detection API print objects found on image to console

前端 未结 6 1872
星月不相逢
星月不相逢 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 07:04

    adding print(class_name) after

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

    in visualization_utils.py file prints the detected object. I wonder where to add print command to print timestamps as well as percentage of accuracy in output.

提交回复
热议问题