Skip to content

Commit

Permalink
Fix crop points order for Rotate when crop_border=True (#1250)
Browse files Browse the repository at this point in the history
Co-authored-by: Mikhail Druzhinin <dipet@gmail.com>
  • Loading branch information
Dipet and Mikhail Druzhinin committed Aug 10, 2022
1 parent 8428971 commit 5236c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion albumentations/augmentations/geometric/rotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def apply_to_keypoint(
):
keypoint_out = F.keypoint_rotate(keypoint, angle, rows, cols, **params)
if self.crop_border:
keypoint_out = FCrops.crop_keypoint_by_coords(keypoint_out, (x_min, x_max, y_min, y_max))
keypoint_out = FCrops.crop_keypoint_by_coords(keypoint_out, (x_min, y_min, x_max, y_max))
return keypoint_out

@staticmethod
Expand Down

0 comments on commit 5236c7a

Please sign in to comment.