Skip to content

Commit

Permalink
fix(pre_commit): 🎨 auto format pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Dec 5, 2023
1 parent 9612fe7 commit 566a929
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions supervision/annotators/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1252,11 +1252,13 @@ def annotate(
for x1, y1, x2, y2 in clipped_xyxy:
roi = scene[y1:y2, x1:x2]
scaled_up_roi = cv2.resize(
src=roi, dsize=None, fx=1 / self.pixel_size, fy=1 / self.pixel_size)
src=roi, dsize=None, fx=1 / self.pixel_size, fy=1 / self.pixel_size
)
scaled_down_roi = cv2.resize(
src=scaled_up_roi,
dsize=(roi.shape[1], roi.shape[0]),
interpolation=cv2.INTER_NEAREST)
interpolation=cv2.INTER_NEAREST,
)

scene[y1:y2, x1:x2] = scaled_down_roi

Expand Down

0 comments on commit 566a929

Please sign in to comment.