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

Feature: Update COCO showAnns function to add useful features like Category-wise Color, etc. #574

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

shivamsnaik
Copy link

  • Add logic to assign color to bboxes and masks based on category_id via a large list of color codes to generalize color coding of polygons.
  • The bool parameter class_based_colors allows the same via a color loopup table called color_code imported from color lookup table color_lut from ColorLookUp.py.
  • Add parameter bbox_line_width for choosing bbox line width.
  • Add parameter label_polygons to allow bboxes and masks to be labelled during visualization.
  • Add parameter label_font_size to choose font-size for the labels.
  • Add boolean flag draw_mask to choose whether mask has to be drawn or not.

- Add logic to assign color to bboxes and masks based on category_id; The bool parameter class_based_colors allows the same via a color loopup table called `color_code`.
- Add parameter for choosing bbox line width.
- Add parameter to allow bboxes and masks to be labelled during visualization.
- Add parameter to choose font-size for the labels.
- Add boolean flag to choose whether mask has to be drawn or not.
- Replace incode color_code dict with separate color lookup table via `ColorLookUp.py`. Now, the `color_lut` can be imported and directly used.
- Replace 13 hex color codes with a large list of color codes to generalize color coding of polygons.
@shivamsnaik shivamsnaik changed the title Update COCO showAnns function to add useful features like Category-wise Color, etc. Feature: Update COCO showAnns function to add useful features like Category-wise Color, etc. Feb 20, 2022
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

Successfully merging this pull request may close these issues.

1 participant