-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Added options to switch text font size and position #3972
Conversation
Hi, @nstolyarov Could you please look at this PR and say us if this is a thing could help you, or maybe suggest other ideas? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I believe the polylabel is a great solution for the problem.
Guys, could you please update documentation according to these new features? |
@dvkruchinin Could you please prepare a test? At least font-size should be tested. I am not sure about good approach to test position, but if you have any ideas how it could be implemented, it is great |
@bsekachev Yes, sure |
@bsekachev Sure. A test will be prepared. |
Motivation and context
Default behaviour:
Updated behaviour:
Polylabel algorithm is used to find best place for text (https://blog.mapbox.com/a-new-algorithm-for-finding-a-visual-center-of-a-polygon-7c77e6492fbc)
How has this been tested?
Checklist
develop
branchcvat-core, cvat-data and cvat-ui)
Resolved #1107
License
Feel free to contact the maintainers if that's a concern.