Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Golodkov committed Sep 5, 2024
1 parent d824876 commit ad62fc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dedocutils/data_structures/bbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def y_bottom_right(self) -> int:
def crop_image_by_box(image: np.ndarray, bbox: "BBox") -> np.ndarray:
return image[bbox.y_top_left:bbox.y_bottom_right, bbox.x_top_left:bbox.x_bottom_right]

def shift_bbox(self, shift_x: int, shift_y: int) -> None:
def shift(self, shift_x: int, shift_y: int) -> None:
self.x_top_left += shift_x
self.y_top_left += shift_y

Expand Down

0 comments on commit ad62fc6

Please sign in to comment.