修改为高分辨率

This commit is contained in:
xsl
2025-12-22 15:55:43 +08:00
parent c83f36c976
commit 1f9e4939b9
105 changed files with 1366 additions and 1715 deletions
+5 -4
View File
@@ -3,9 +3,9 @@ from PIL import Image
import os
# 全局变量定义分辨率
RESIZE_TO = (256, 256)
LARGE_IMAGE_SIZE = (2048, 2048)
IMAGE_COUNT = 64
RESIZE_TO = (512, 512)
LARGE_IMAGE_SIZE = (4096, 2048)
IMAGE_COUNT = 32
ROOT_DIR = '../example/src/main/assets/pic'
@@ -54,7 +54,8 @@ def remove_white_border(image):
def resize_image(image_path):
image = Image.open(image_path).convert('RGBA')
image = remove_white_border(image)
return image.resize(RESIZE_TO)
#return image.resize(RESIZE_TO)
return image
def main(json_file_path):
# 确保使用完整路径