Skip to content

Problem with custom_color_lookup on annotate function #1032

Closed Answered by SkalskiP
Youho99 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Youho99 👋🏻, custom_color_lookup is not the feature you are looking for. You should use sv.ColorPalette. Now you will be able to plug it into any Supervision annotator.

import supervision as sv

color = sv.ColorPalette.from_hex(['#3ab63f', '#459af5'])

annotator = sv.BoundingBoxAnnotator(color=color)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Ying-Kang
Comment options

@SkalskiP
Comment options

Answer selected by Youho99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
3 participants
Converted from issue

This discussion was converted from issue #1031 on March 22, 2024 14:10.