From d44a757f52eec54265d46d7c48cad269a0ba9dda Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Thu, 11 Jul 2024 08:53:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A3=81=E5=88=87=E5=9B=BE=E7=89=87=E4=B8=BAa4?= =?UTF-8?q?=E7=BA=B8=E6=AF=94=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- photo_mask.py | 2 +- photo_review/photo_review.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/photo_mask.py b/photo_mask.py index 730c0df..87bda6c 100644 --- a/photo_mask.py +++ b/photo_mask.py @@ -38,7 +38,7 @@ def open_image(img_path): return image -def split_image(img, max_ratio=2.82, best_ration=1.41, overlap=0.05): +def split_image(img, max_ratio=1.41, best_ration=1.41, overlap=0.05): split_result = [] # 获取图片的宽度和高度 height, width = img.shape[:2] diff --git a/photo_review/photo_review.py b/photo_review/photo_review.py index dd7222d..215f7a1 100644 --- a/photo_review/photo_review.py +++ b/photo_review/photo_review.py @@ -54,7 +54,7 @@ def open_image(img_path): # 分割大图片 -def split_image(img_path, max_ratio=2.82, best_ration=1.41, overlap=0.05): +def split_image(img_path, max_ratio=1.41, best_ration=1.41, overlap=0.05): split_result = [] # 打开图片 img = open_image(img_path)