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

Modified triangle and dot in annotators-core #1294

Merged
merged 15 commits into from
Jun 20, 2024

Conversation

dsaha21
Copy link
Contributor

@dsaha21 dsaha21 commented Jun 19, 2024

Description

Adding changes as described in the ISSUE

The modifications upon the existing code base might result for a more clear visualisation

Testing

Also adding the colab file for checking and testing.

Thanks.

@CLAassistant
Copy link

CLAassistant commented Jun 19, 2024

CLA assistant check
All committers have signed the CLA.

@dsaha21
Copy link
Contributor Author

dsaha21 commented Jun 19, 2024

I have read the CLA Document and I sign the CLA

Copy link
Collaborator

@LinasKo LinasKo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good starting point - I like the testing colab and the resulting annotation, but there's way to improve the code. I left a few comments 😉

supervision/annotators/core.py Outdated Show resolved Hide resolved
supervision/annotators/core.py Outdated Show resolved Hide resolved
supervision/annotators/core.py Outdated Show resolved Hide resolved
supervision/annotators/core.py Outdated Show resolved Hide resolved
@onuralpszr
Copy link
Collaborator

@LinasKo I added doc part quickly, and rest looks better but @dsaha21 can you squash your commits and make meaningful comment message, or I can do it too (I am gonna squash couple of them and write something cleaner)

@@ -898,6 +901,7 @@ def annotate(
else custom_color_lookup,
)
center = (int(xy[detection_idx, 0]), int(xy[detection_idx, 1]))
cv2.circle(scene, center, self.radius, (0, 0, 0), self.outline_thickness)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's only do this when self.outline_thickness is not 0, just like in the triangle annotator

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes @LinasKo, will add a condition statement here. Updating it and submiting.

@dsaha21
Copy link
Contributor Author

dsaha21 commented Jun 19, 2024

Hi @LinasKo, please check the latest colab notebook

These are the final changes. Please let me know about further changes if needed. Thanks

@onuralpszr onuralpszr force-pushed the modify-annotators branch 2 times, most recently from 62d0a60 to 272a9cb Compare June 20, 2024 09:37
Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
@onuralpszr onuralpszr merged commit b2b251a into roboflow:develop Jun 20, 2024
9 checks passed
@LinasKo
Copy link
Collaborator

LinasKo commented Jun 20, 2024

Thank you, @dsaha21 and @onuralpszr!

It's great to have such a nice contribution in the repo this quick 😉

@onuralpszr onuralpszr mentioned this pull request Jun 20, 2024
2 tasks
@dsaha21 dsaha21 deleted the modify-annotators branch June 22, 2024 04:46
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.

4 participants