SSD icon indicating copy to clipboard operation
SSD copied to clipboard

How to change the thickness of prediction box

Open 18718277909 opened this issue 3 years ago • 1 comments

Hi,Thanks for your job Because the feature box of the predicted image output from demo is too thin, it is difficult to see the box clearly,So I would like to ask how to change the thickness of the box. Thank you for your help

18718277909 avatar Feb 20 '21 11:02 18718277909

Just pass a width parameter with the desired value in the draw_boxes function. Like this in the demo.py file.

90       drawn_image = draw_boxes(image, boxes, labels,
91                                scores, class_names, width=20).astype(np.uint8)

SamSamhuns avatar Apr 28 '21 13:04 SamSamhuns