Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the thickness of prediction box #194

Open
18718277909 opened this issue Feb 20, 2021 · 1 comment
Open

How to change the thickness of prediction box #194

18718277909 opened this issue Feb 20, 2021 · 1 comment

Comments

@18718277909
Copy link

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

@SamSamhuns
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants