去灰程序处理
This commit is contained in:
1 parent
b6273cb912
commit
344bab6448
2 files changed
+6
No files matched your search
@@ -164,6 +164,10 @@ def get_obj_max_foot():
|
||||
|
||||
# print(f"new_location: {bpy.data.objects['foot'].location}")
|
||||
|
||||
#判断 bpy.data.objects['qr'] 是否存在
|
||||
if 'qr' not in bpy.data.objects:
|
||||
return
|
||||
|
||||
active_object(bpy.data.objects['qr'])
|
||||
bpy.ops.object.origin_set(type='ORIGIN_CENTER_OF_MASS', center='MEDIAN')
|
||||
bpy.data.objects['qr'].rotation_euler[0] = 0
|
||||
|
||||
@@ -590,6 +590,8 @@ def main(workdir, r, print_id):
|
||||
# 加入去灰、锐化
|
||||
remove_gray_and_sharpening(jpg_path)
|
||||
|
||||
shutil.copyfile(jpg_path, os.path.join(workdir,f'{pid}_{order_id}', f"{pid}Tex1_qr.jpg"))
|
||||
|
||||
#上传脚底板文件 -》 修改为移动脚底板文件
|
||||
upload_jpg_mtl(pid, order_id, print_id)
|
||||
|
||||
|
||||
Reference in new issue
Block a user