Skip to content

Commit e1e455f

Browse files
committed
Update color mapping system in detection annotations
Adjusted the way colors are applied to detection annotations to allow support for custom color schemes. Modified 'ColorMap' to 'ColorLookup' across multiple files, adding ability to use a color lookup array. This refinement will enable users to assign custom colors to different detection annotations, offering greater flexibility in visual representation of detection data. Updated related tests to reflect these changes.
1 parent 5b5e0eb commit e1e455f

File tree

4 files changed

+230
-136
lines changed

4 files changed

+230
-136
lines changed

supervision/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
MaskAnnotator,
1919
TraceAnnotator,
2020
)
21-
from supervision.annotators.utils import ColorMap
21+
from supervision.annotators.utils import ColorLookup
2222
from supervision.classification.core import Classifications
2323
from supervision.dataset.core import (
2424
BaseDataset,

0 commit comments

Comments
 (0)