This commit is contained in:
2024-06-21 13:53:03 +08:00
parent 3ce4901473
commit 4071455aab

View File

@@ -54,9 +54,9 @@ def open_image(img_path):
# 分割大图片
def split_image(img_path, max_ratio=2.82, best_ration=1.41, overlap=0.05):
split_result = []
pdb.set_trace()
# 打开图片
img = open_image(img_path)
pdb.set_trace()
# 获取图片的宽度和高度
height, width = img.shape[:2]
# 计算宽高比