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

Color helper functions #236

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Color helper functions #236

wants to merge 4 commits into from

Conversation

kozlov721
Copy link
Collaborator

@kozlov721 kozlov721 commented Jan 25, 2025

  • Added some helper functions to luxonis_ml.data.utils.visualizations
    • distinct_color_generator: A generator generating a sequence of colors where each subsequent color is visually distinct from the previous one
    • ColorMap: Mapping from any hashable value to a distinct color, utilizes the distinct_color_generator in the background
  • Fixed incorrect name HSB to HSV
  • Added RGB and HSV type aliases

@kozlov721 kozlov721 requested a review from a team as a code owner January 25, 2025 08:14
@kozlov721 kozlov721 requested review from klemen1999, tersekmatija and conorsim and removed request for a team January 25, 2025 08:14
@github-actions github-actions bot added the enhancement New feature or request label Jan 25, 2025
Copy link

codecov bot commented Jan 25, 2025

Codecov Report

Attention: Patch coverage is 98.21429% with 1 line in your changes missing coverage. Please review.

Project coverage is 95.78%. Comparing base (2858ae8) to head (cdda61d).

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
luxonis_ml/data/utils/visualizations.py 97.72% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #236   +/-   ##
=======================================
  Coverage   95.77%   95.78%           
=======================================
  Files          90       90           
  Lines        4828     4863   +35     
=======================================
+ Hits         4624     4658   +34     
- Misses        204      205    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant