新影棚姿势对齐程序
This commit is contained in:
1 parent
d51cc017a1
commit
45d432d0e9
2 files changed
+5
-5
No files matched your search
@@ -58,8 +58,8 @@ def get_photo2_align_info(pid):
|
||||
#判断对齐的图片数量和photo2的数量是否一致,不一致要进行通知处理
|
||||
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}/texture/11_2.xmp'
|
||||
print(f"影棚号:{psid} , {config.oss_bucket.object_exists(filename)}")
|
||||
isRate = False
|
||||
if not config.oss_bucket.object_exists(filename):
|
||||
#提示是否进行 xmps_new_studio_rate 文件夹的创建
|
||||
|
||||
@@ -74,7 +74,7 @@ def upload_xmp(pid):
|
||||
start_time = time.time()
|
||||
workdir = os.path.join(config.workdir, pid)
|
||||
|
||||
config.oss_bucket.put_object_from_file(f'xmps_new_studio_rate/{psid}/{psid}.rcbox', os.path.join(workdir, f'{pid}.rcbox'))
|
||||
#config.oss_bucket.put_object_from_file(f'xmps_new_studio_rate/{psid}/{psid}.rcbox', os.path.join(workdir, f'{pid}.rcbox'))
|
||||
|
||||
# for xmp in os.listdir(os.path.join(workdir, 'photo1')):
|
||||
# if xmp.endswith('.xmp'):
|
||||
@@ -85,9 +85,9 @@ def upload_xmp(pid):
|
||||
|
||||
# shutil.copy(os.path.join(workdir, 'photo1', xmp), os.path.join(config.sharedir, 'xmps_new_studio_rate', psid, 'mesh', xmp))
|
||||
|
||||
for xmp in os.listdir(os.path.join(workdir, 'photo2')):
|
||||
for xmp in os.listdir(os.path.join(workdir,'photo2')):
|
||||
if xmp.endswith('.xmp'):
|
||||
config.oss_bucket.put_object_from_file(f'xmps_new_studio_rate/{psid}/texture/{xmp}', os.path.join(workdir, 'photo2', xmp))
|
||||
config.oss_bucket.put_object_from_file(f'xmps_new_studio_rate/{psid}/texture/{xmp}', os.path.join(workdir,'photo2', xmp))
|
||||
#复制一份到共享盘上的 libs xmps psid 文件夹下
|
||||
os.makedirs(os.path.join(config.sharedir, 'xmps_new_studio_rate', psid, 'texture'), exist_ok=True)
|
||||
shutil.copy(os.path.join(workdir, 'photo2', xmp), os.path.join(config.sharedir, 'xmps_new_studio_rate', psid, 'texture', xmp))
|
||||
|
||||
Reference in new issue
Block a user