Merge branch 'master' of https://git.suwa3d.com/dongchangxi/make2
This commit is contained in:
commit
a368a6de90
3 files changed
+13
-5
No files matched your search
@@ -4,3 +4,9 @@ old_to_new_build/__pycache__/tools_to_xmps.cpython-310.pyc
|
|||||||
pid.text
|
pid.text
|
||||||
task_distributed_error.log
|
task_distributed_error.log
|
||||||
export_build_info/__pycache__/export_already_build.cpython-310.pyc
|
export_build_info/__pycache__/export_already_build.cpython-310.pyc
|
||||||
|
yj_local_build/dist/
|
||||||
|
yj_local_build/build/
|
||||||
|
yj_local_build/build/main_step1/main_step1.exe
|
||||||
|
new_studio_to_reg/__pycache__
|
||||||
|
new_studio_to_reg/__pycache__/tools_to_xmps.cpython-310.pyc
|
||||||
|
new_studio_to_reg/__pycache__/tools_to_xmps.cpython-310.pyc
|
||||||
+2
-2
@@ -59,12 +59,12 @@ def cmd_run(pid,usePhoto = "1",lock=False):
|
|||||||
if lock:
|
if lock:
|
||||||
exportxmp = ' -exportXMP "D:\\make2\\config\\exportXMP.config.lock.xml" '
|
exportxmp = ' -exportXMP "D:\\make2\\config\\exportXMP.config.lock.xml" '
|
||||||
else:
|
else:
|
||||||
exportxmp = ' -exportXMP "D:\\make2\\config\\exportXMP.config.xml" '
|
exportxmp = ' -exportXMP "D:\\make2\\config\\exportXMP.config.lock.xml" '
|
||||||
|
|
||||||
usePhoto = "photo"+str(usePhoto)
|
usePhoto = "photo"+str(usePhoto)
|
||||||
|
|
||||||
#执行命令
|
#执行命令
|
||||||
cmd = f'{config.rcbin} {config.r2["init"]} -setInstanceName "{pid}" \
|
cmd = f'{config.rcbin} -setInstanceName "{pid}" \
|
||||||
-save "{os.path.join(config.workdir, pid, f"{pid}.rcproj")}" \
|
-save "{os.path.join(config.workdir, pid, f"{pid}.rcproj")}" \
|
||||||
-addFolder "{os.path.join(config.workdir, pid, usePhoto)}" -selectAllImages \
|
-addFolder "{os.path.join(config.workdir, pid, usePhoto)}" -selectAllImages \
|
||||||
-detectMarkers "D:\\make2\\config\\detectMarkers.config.xml" \
|
-detectMarkers "D:\\make2\\config\\detectMarkers.config.xml" \
|
||||||
|
|||||||
@@ -55,12 +55,12 @@ def get_photo2_align_info(pid):
|
|||||||
#下载照片
|
#下载照片
|
||||||
libs.down_from_oss_photo2(config.oss_bucket, config.workdir, pid)
|
libs.down_from_oss_photo2(config.oss_bucket, config.workdir, pid)
|
||||||
|
|
||||||
#判断对齐的图片数量和photo2的数量是否一致,不一致要进行通知处理
|
|
||||||
photosNums = len(os.listdir(os.path.join(config.workdir, pid, "photo2")))
|
|
||||||
#判断是否存在该目录
|
#判断是否存在该目录
|
||||||
filename = f'xmps_new_studio_rate/{psid}/texture/11_2.xmp'
|
filename = f'xmps_new_studio_rate/{psid}/texture/11_2.xmp'
|
||||||
print(f"影棚号:{psid} , {config.oss_bucket.object_exists(filename)}")
|
print(f"影棚号:{psid} , {config.oss_bucket.object_exists(filename)}")
|
||||||
isRate = False
|
isRate = False
|
||||||
|
photosNums = 0
|
||||||
if not config.oss_bucket.object_exists(filename):
|
if not config.oss_bucket.object_exists(filename):
|
||||||
# #提示是否进行 xmps_new_studio_rate 文件夹的创建
|
# #提示是否进行 xmps_new_studio_rate 文件夹的创建
|
||||||
# yes_or_not = input('当前该影棚没有对应的对齐坐标,是否创建?(y/n)')
|
# yes_or_not = input('当前该影棚没有对应的对齐坐标,是否创建?(y/n)')
|
||||||
@@ -69,6 +69,7 @@ def get_photo2_align_info(pid):
|
|||||||
# isRate = True
|
# isRate = True
|
||||||
# else:
|
# else:
|
||||||
# sys.exit(0)
|
# sys.exit(0)
|
||||||
|
photosNums = len(os.listdir(os.path.join(config.workdir, pid, "photo2")))
|
||||||
tools_to_xmps.create_rate_xmps(pid)
|
tools_to_xmps.create_rate_xmps(pid)
|
||||||
isRate = True
|
isRate = True
|
||||||
|
|
||||||
@@ -76,7 +77,8 @@ def get_photo2_align_info(pid):
|
|||||||
if isRate == False:
|
if isRate == False:
|
||||||
print(f"旋转图片:{pid}")
|
print(f"旋转图片:{pid}")
|
||||||
tools_to_xmps.rateImages(pid)
|
tools_to_xmps.rateImages(pid)
|
||||||
|
#判断对齐的图片数量和photo2的数量是否一致,不一致要进行通知处理
|
||||||
|
photosNums = len(os.listdir(os.path.join(config.workdir, pid, "photo2")))
|
||||||
#下载对齐信息
|
#下载对齐信息
|
||||||
get_xmps(psid,pid)
|
get_xmps(psid,pid)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user