feat(新功能):

fix(修复bug):  pattern_image (上色无印花sketch图),修改为不拉伸
docs(文档变更):
refactor(重构):
test(增加测试):
This commit is contained in:
zhh
2025-09-18 15:17:51 +08:00
parent 978e0d998d
commit 16d4844cca

View File

@@ -22,7 +22,7 @@ class Color:
resize_pattern = cv2.resize(pattern, (dim_image_w, dim_image_h), interpolation=cv2.INTER_AREA)
# 无色
elif "color" not in result.keys() or result['color'] == "":
result['final_image'] = result['pattern_image'] = result['single_image'] = result['image']
result['no_seg_sketch'] = result['final_image'] = result['pattern_image'] = result['single_image'] = result['image']
result['alpha'] = 100 / 255.0
return result
# 正常颜色