Skip to content

Commit

Permalink
Don't convexHull images detected
Browse files Browse the repository at this point in the history
Image can be a not rectangular crop.
  • Loading branch information
bansan85 committed Oct 26, 2020
1 parent cad8600 commit 89c0a80
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions page/find_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,8 @@ def find_images(
lambda c: cv2.contourArea(c) > param.min_area * cv2ext.get_area(image),
all_polygon,
)
all_polygon_hull = map(cv2.convexHull, big_images)

for contour in all_polygon_hull:
for contour in big_images:
if enable_debug is not None:
debug_image_contours = cv2.drawContours(
debug_image_contours, [contour], -1, (255, 0, 0), 3
Expand Down

0 comments on commit 89c0a80

Please sign in to comment.