1
This commit is contained in:
1 parent
7fdfffde7e
commit
0fe0c620b5
1 file changed
+3
-2
@@ -56,6 +56,8 @@ def get_photo2_align_info(pid):
|
||||
#下载照片
|
||||
libs.down_from_oss_photo2(config.oss_bucket, config.workdir, 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'
|
||||
@@ -107,8 +109,7 @@ def get_photo2_align_info(pid):
|
||||
alignNums += 1
|
||||
config.oss_bucket.put_object_from_file(f'objs/auto/{pid}/new_studio_align_info/jpgs/{file}', os.path.join(config.workdir, pid, 'reg', file))
|
||||
|
||||
#判断对齐的图片数量和photo2的数量是否一致,不一致要进行通知处理
|
||||
photosNums = len(os.listdir(os.path.join(config.workdir, pid, "photo2")))
|
||||
|
||||
if alignNums != photosNums:
|
||||
notify(f'影棚号:{psid} , PID:{pid},没有对齐,照片数量:{photosNums} 对齐的图片数量:{alignNums}')
|
||||
|
||||
|
||||
Reference in new issue
Block a user