This commit is contained in:
wangjialiang
2025-11-21 13:33:43 +08:00
parent d05d5d3bcd
commit 7d64d8dcd6
3 changed files with 72 additions and 2 deletions

View File

@@ -2,8 +2,8 @@ import os
from PIL import Image
# === 参数配置 ===
input_folder = r"D:\PythonProject\AutoAnno\还没clip" # 原图所在文件夹
output_folder = r"D:\PythonProject\AutoAnno\test_images" # 裁剪后保存的文件夹
input_folder = r"E:\Train\EM 18 REJ" # 原图所在文件夹
output_folder = r"E:\Train\EM18Output" # 裁剪后保存的文件夹
crop_right_pixels = 1450 # 要裁掉的右侧像素数量
# 如果输出文件夹不存在则创建