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

Refactor code for the updated features #39

Merged
merged 4 commits into from
Apr 3, 2024
Merged

Conversation

zhiltsov-max
Copy link
Collaborator

@zhiltsov-max zhiltsov-max commented Apr 3, 2024

Summary

This PR polishes some recently added code to make it clearer and more correct. Required to be used in CVAT.

  • Fix invalid polygon comparison in tests
  • Improve docstring for the updated crop_covered_segments's ratio_tolerance parameter
  • Added more functions for plain polygons, namely close_polygon and simplify_polygon

How to test

Checklist

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below)
# Copyright (C) 2022 CVAT.ai Corporation
#
# SPDX-License-Identifier: MIT

@zhiltsov-max zhiltsov-max merged commit 82982b1 into develop Apr 3, 2024
18 checks passed
@zhiltsov-max zhiltsov-max deleted the zm/refactor-code branch April 3, 2024 11:19
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.

1 participant