This commit is contained in:
2024-06-21 13:49:51 +08:00
parent d62889ffe6
commit 3ce4901473
2 changed files with 2 additions and 15 deletions

View File

@@ -2,6 +2,7 @@ import json
import logging
import math
import os
import pdb
import sys
import tempfile
import time
@@ -55,6 +56,7 @@ def split_image(img_path, max_ratio=2.82, best_ration=1.41, overlap=0.05):
split_result = []
# 打开图片
img = open_image(img_path)
pdb.set_trace()
# 获取图片的宽度和高度
height, width = img.shape[:2]
# 计算宽高比