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

Add opacity to PolygonZoneAnnotator #1527

Merged
merged 7 commits into from
Sep 19, 2024

Conversation

grzegorz-roboflow
Copy link
Contributor

Description

Extend PolygonZoneAnnotator to let user to set opacity when drawing zone on the scene. Default setting (opacity == 0) results in unchanged behavior. When opacity is greater than 0 then zone is filled with opacity.

polygon_zone_annotator_opacity

Type of change

  • New feature (non-breaking change which adds functionality)

How has this change been tested, please provide a testcase or example of how you tested the change?

Added unit test covering PolygonZoneAnnotator.annotate

Any specific deployment considerations

N/A

Docs

Added opacity to PolygonZoneAnnotator docstring

@LinasKo
Copy link
Collaborator

LinasKo commented Sep 19, 2024

Tested in Colab.

Looks good! Thanks @grzegorz-roboflow!

@LinasKo LinasKo merged commit fdda725 into develop Sep 19, 2024
2 checks passed
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.

2 participants