From fae6dbaad48987f9b6e26fee2c27b897017d8526 Mon Sep 17 00:00:00 2001 From: Pau Gargallo Date: Sun, 6 Sep 2015 16:03:55 +0200 Subject: [PATCH] Create image_list.txt with original filenames for odm_texturing Former-commit-id: 9f446691418842e7707d94f02741f11d9d7580c7 --- run.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/run.py b/run.py index 11722a91..356ee891 100755 --- a/run.py +++ b/run.py @@ -689,7 +689,13 @@ def odm_texturing(): except: pass - run("\"" + BIN_PATH + "/odm_texturing\" -bundleFile " + jobOptions["jobDir"] + "/pmvs/bundle.rd.out -imagesPath " + jobOptions["srcDir"] + "/ -imagesListPath " + jobOptions["jobDir"] + "/pmvs/list.rd.txt -inputModelPath " + jobOptions["jobDir"] + "-results/odm_mesh-0000.ply -outputFolder " + jobOptions["jobDir"] + "-results/odm_texturing/ -textureResolution " + str(args.odm_texturing_textureResolution) + " -bundleResizedTo " + str(jobOptions["resizeTo"]) + " -textureWithSize " + str(args.odm_texturing_textureWithSize) + " -logFile " + jobOptions["jobDir"] + "/odm_texturing/odm_texturing_log.txt") + # Create list of original image files + with open(jobOptions['jobDir'] + "/odm_texturing/image_list.txt", "w") as fout: + for fileObject in objects: + if fileObject["isOk"]: + fout.write("./" + fileObject["src"] + "\n") + + run("\"" + BIN_PATH + "/odm_texturing\" -bundleFile " + jobOptions["jobDir"] + "/pmvs/bundle.rd.out -imagesPath " + jobOptions["srcDir"] + "/ -imagesListPath " + jobOptions["jobDir"] + "/odm_texturing/image_list.txt -inputModelPath " + jobOptions["jobDir"] + "-results/odm_mesh-0000.ply -outputFolder " + jobOptions["jobDir"] + "-results/odm_texturing/ -textureResolution " + str(args.odm_texturing_textureResolution) + " -bundleResizedTo " + str(jobOptions["resizeTo"]) + " -textureWithSize " + str(args.odm_texturing_textureWithSize) + " -logFile " + jobOptions["jobDir"] + "/odm_texturing/odm_texturing_log.txt") def odm_georeferencing():