From fd11d0b122c94cc9234c574d8a17de856082def4 Mon Sep 17 00:00:00 2001 From: youwater Date: Tue, 10 Oct 2023 11:53:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AEphoto3=E4=B8=8D=E5=8F=82?= =?UTF-8?q?=E4=B8=8E=E5=BB=BA=E6=A8=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main_step1.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main_step1.py b/main_step1.py index c105048..d2b4033 100644 --- a/main_step1.py +++ b/main_step1.py @@ -81,6 +81,10 @@ def detect_markers(psid, pid): if filename.endswith('_8.xmp'): # photo3 exist, 设置photo2的xmp文件,不参与贴图 libs.set_photo_join_type(config.workdir, pid, 'photo2', filename.split('_')[0], mesh='1', texture='0') + for filename in os.listdir(os.path.join(config.workdir, pid, 'photo3')): + if filename.endswith('_8.xmp'): + # photo3 exist, 设置photo3的xmp文件,不参与建模 + libs.set_photo_join_type(config.workdir, pid, 'photo3', filename.split('_')[0], mesh='0', texture='1') def cal_reconstruction_region(psid, pid): def fix_region():