Skip to content

Commit

Permalink
Merge pull request #441 from MarieRoald/small-bugfix-for-geometric
Browse files Browse the repository at this point in the history
Fix UnboundLocalError in Geometric
  • Loading branch information
kwcckw authored Sep 10, 2024
2 parents f89615c + 9d424f8 commit 49f34c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions augraphy/augmentations/geometric.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def run_crop(self, image, mask, keypoints, bounding_boxes):
# remove and limit bounding boxes to the cropped boundary
if bounding_boxes is not None:
# check each point, and remove them if it is outside the cropping area
remove_indices = []
for i, bounding_box in enumerate(bounding_boxes):
xspoint, yspoint, xepoint, yepoint = bounding_box
# start point is outside the croped area, but end point is inside
Expand Down

0 comments on commit 49f34c6

Please sign in to comment.