Skip to content

Commit

Permalink
fix array not resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
vorozhkog committed Nov 20, 2024
1 parent fae90e8 commit 502f8a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ def export_as_masks(api: sly.Api):
int(array_to_write.shape[0] * (g.RESIZE_PERCENT / 100)),
int(array_to_write.shape[1] * (g.RESIZE_PERCENT / 100)),
)
cv2.resize(array_to_write, new_dimensions, interpolation=cv2.INTER_AREA)
array_to_write = cv2.resize(
array_to_write, new_dimensions, interpolation=cv2.INTER_AREA
)

sly.image.write(
os.path.join(human_masks_dir, mask_img_name),
Expand Down

0 comments on commit 502f8a8

Please sign in to comment.