Skip to content

Commit

Permalink
fix: discard polygons with length of 4 or less (#2100)
Browse files Browse the repository at this point in the history
* discard polygons with length of 4 or less

* updated minimum length of polygons

* added line in CHANGELOG

Co-authored-by: Nikita Manovich <nikita.manovich@intel.com>
  • Loading branch information
savan77 and Nikita Manovich committed Sep 2, 2020
1 parent 51ff630 commit e52ff96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
-

### Fixed
-
- Fixed multiple errors which arises when polygon is of length 5 or less (<https://github.com/opencv/cvat/pull/2100>)

### Security
-
Expand All @@ -48,7 +48,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed error with creating task with labels with the same name (<https://github.com/opencv/cvat/pull/2031>)
- Django RQ dashboard view (<https://github.com/opencv/cvat/pull/2069>)
- Object's details menu settings (<https://github.com/opencv/cvat/pull/2084>)
-

## [1.1.0-beta] - 2020-08-03
### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def infer(self, image, threshold):
contour = np.flip(contour, axis=1)
# Approximate the contour and reduce the number of points
contour = approximate_polygon(contour, tolerance=2.5)
if len(contour) < 3:
if len(contour) < 6:
continue
label = self.labels[class_id]

Expand Down

0 comments on commit e52ff96

Please sign in to comment.