Feature: Update COCO showAnns function to add useful features like Category-wise Color, etc.#574
Open
shivamsnaik wants to merge 3 commits intococodataset:masterfrom
Open
Feature: Update COCO showAnns function to add useful features like Category-wise Color, etc.#574shivamsnaik wants to merge 3 commits intococodataset:masterfrom
shivamsnaik wants to merge 3 commits intococodataset:masterfrom
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
class_based_colorsallows the same via a color loopup table calledcolor_codeimported from color lookup tablecolor_lutfromColorLookUp.py.bbox_line_widthfor choosing bbox line width.label_polygonsto allow bboxes and masks to be labelled during visualization.label_font_sizeto choose font-size for the labels.draw_maskto choose whether mask has to be drawn or not.