新影棚的对齐程序

This commit is contained in:
dongchangxi committed 2025-01-05 10:10:15 +08:00
1 parent 0fe0c620b5
commit 0554de8211
2 files changed
+17 -14

No files matched your search

+10 -10
View File
@@ -60,16 +60,16 @@ def get_photo2_align_info(pid):
photosNums = len(os.listdir(os.path.join(config.workdir, pid, "photo2")))
#判断是否存在该目录
print(f"影棚号:{psid} , {config.oss_bucket.object_exists(f'xmps_new_studio_rate/{psid}/')}")
filename = f'xmps_new_studio_rate/{psid}/{psid}.rcbox'
#filename = f'xmps_new_studio_rate/{psid}/{psid}.rcbox'
isRate = False
if not config.oss_bucket.object_exists(filename):
#提示是否进行 xmps_new_studio_rate 文件夹的创建
yes_or_not = input('当前该影棚没有对应的对齐坐标,是否创建?(y/n)')
if yes_or_not == 'y':
tools_to_xmps.create_rate_xmps(pid)
isRate = True
else:
sys.exit(0)
# if not config.oss_bucket.object_exists(filename):
# #提示是否进行 xmps_new_studio_rate 文件夹的创建
# yes_or_not = input('当前该影棚没有对应的对齐坐标,是否创建?(y/n)')
# if yes_or_not == 'y':
# tools_to_xmps.create_rate_xmps(pid)
# isRate = True
# else:
# sys.exit(0)
#旋转图片
if isRate == False:
@@ -77,7 +77,7 @@ def get_photo2_align_info(pid):
tools_to_xmps.rateImages(pid)
#下载对齐信息
get_xmps(psid,pid)
#get_xmps(psid,pid)
#执行对齐指令
cmd = f'{config.rcbin} {config.r2["init"]} -setInstanceName {pid} \