models icon indicating copy to clipboard operation
models copied to clipboard

How to Hide/Remove Bounding Boxes

Open myagmur01 opened this issue 8 years ago • 5 comments

Hi everyone,

I am just wondering that if there is a way to hide bounding boxes and only output the class name at the center of the object.

I took a glance over utils/visualization_utils.py , but things are too complicated to figure out that which function are basically responsible to create boxes.

For example , the term 'visualize_boxes_and_labels_on_image_array' are introduced as both a function and a return value of another function. Can someone explain please ?

Thank you.

myagmur01 avatar Jul 31 '18 04:07 myagmur01

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks. What is the top-level directory of the model you are using Have I written custom code OS Platform and Distribution TensorFlow installed from TensorFlow version Bazel version CUDA/cuDNN version GPU model and memory Exact command to reproduce

tensorflowbutler avatar Jul 31 '18 13:07 tensorflowbutler

Hi again ,

  • What is the top-level directory of the model you are using: research/object_detection/
  • Have I written custom code : No

System Information

  • OS Platform and Distribution:Ubuntu 16.04
  • TensorFlow installed from: Binary
  • TensorFlow version:1.4.0
  • Bazel version:N/A
  • CUDA/cuDNN version:9.0, V9.0.176
  • GPU model and memory:GeForce GTX 1080 Ti/PCIe/SSE2
  • Exact command to reproduce: N/A

myagmur01 avatar Aug 01 '18 00:08 myagmur01

Try to remove anything related to draw.line function. It should have remove the bounding box lines around the object.

lcycoding avatar Aug 01 '18 04:08 lcycoding

I had missed that, obviously that much easy. Thank you very much

myagmur01 avatar Aug 01 '18 07:08 myagmur01

@mytrjp Hi, How did you do that ? how did you remove bounding box or hide. I am alsa trying to remove some line from "visualization_utils.py", but it is not working. Can you describe what did you remove and from where ? Thank you.

agitcelik avatar Jan 22 '19 11:01 agitcelik