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

Why diffrent colors of bboxs? #1638

Closed
TommyZihao opened this issue Dec 8, 2020 · 3 comments
Closed

Why diffrent colors of bboxs? #1638

TommyZihao opened this issue Dec 8, 2020 · 3 comments
Labels
enhancement New feature or request Stale Stale and schedule for closing soon

Comments

@TommyZihao
Copy link
Contributor

When I run detect.py several times, there are different colors of bounding box but of the same object.
How can I configure the colors of the specific class bounding box?
For example, red for people bbox, green for car bbox.
Thank you !

@TommyZihao TommyZihao added the enhancement New feature or request label Dec 8, 2020
@zhiqwang
Copy link
Contributor

zhiqwang commented Dec 8, 2020

Checkout this line to determine colors of objects.

colors = [[random.randint(0, 255) for _ in range(3)] for _ in names]

@TommyZihao
Copy link
Contributor Author

Checkout this line to determine colors of objects.

colors = [[random.randint(0, 255) for _ in range(3)] for _ in names]

Thank you so much, I figure it out.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 7, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale Stale and schedule for closing soon label Feb 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Stale Stale and schedule for closing soon
Projects
None yet
Development

No branches or pull requests

2 participants