feat(新功能):
fix(修复bug): overall 坐标算法新增比例参数 docs(文档变更): refactor(重构): test(增加测试):
This commit is contained in:
@@ -25,7 +25,6 @@ class PrintPainting:
|
|||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
# 2025-9-19 印花调整 印花坐标按照sketch的缩放比调整
|
# 2025-9-19 印花调整 印花坐标按照sketch的缩放比调整
|
||||||
overall_print['location'][0] = [x * y for x, y in zip(overall_print['location'][0], result['resize_scale'])]
|
|
||||||
height, width = result['pattern_image'].shape[:2]
|
height, width = result['pattern_image'].shape[:2]
|
||||||
new_width = int(width * result['resize_scale'][0])
|
new_width = int(width * result['resize_scale'][0])
|
||||||
new_height = int(height * result['resize_scale'][1])
|
new_height = int(height * result['resize_scale'][1])
|
||||||
@@ -36,6 +35,7 @@ class PrintPainting:
|
|||||||
result['gray'] = cv2.resize(result['gray'], (new_width, new_height))
|
result['gray'] = cv2.resize(result['gray'], (new_width, new_height))
|
||||||
|
|
||||||
if overall_print['print_path_list']:
|
if overall_print['print_path_list']:
|
||||||
|
overall_print['location'][0] = [x * y for x, y in zip(overall_print['location'][0], result['resize_scale'])]
|
||||||
painting_dict = {'dim_image_h': result['pattern_image'].shape[0], 'dim_image_w': result['pattern_image'].shape[1]}
|
painting_dict = {'dim_image_h': result['pattern_image'].shape[0], 'dim_image_w': result['pattern_image'].shape[1]}
|
||||||
result['print_image'] = result['pattern_image']
|
result['print_image'] = result['pattern_image']
|
||||||
if "print_angle_list" in overall_print.keys() and overall_print['print_angle_list'][0] != 0:
|
if "print_angle_list" in overall_print.keys() and overall_print['print_angle_list'][0] != 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user