kopia lustrzana https://github.com/OpenDroneMap/ODM
Merge pull request #168 from paulinus/texture-use-originals
Fix name of original images for odm_texturingpull/183/head
commit
3c6071a4c8
14
run.py
14
run.py
|
@ -780,7 +780,19 @@ 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
|
||||
pmvs_list = jobOptions["jobDir"] + "/pmvs/list.rd.txt"
|
||||
texturing_list = jobOptions['jobDir'] + "/odm_texturing/image_list.txt"
|
||||
with open(pmvs_list) as fin:
|
||||
with open(texturing_list, "w") as fout:
|
||||
for line in fin:
|
||||
base = line.rstrip('\n')[2:-4]
|
||||
for fileObject in objects:
|
||||
if fileObject["base"] == base:
|
||||
fout.write("./{}\n".format(fileObject["src"]))
|
||||
break
|
||||
|
||||
run("\"" + BIN_PATH + "/odm_texturing\" -bundleFile " + jobOptions["jobDir"] + "/pmvs/bundle.rd.out -imagesPath " + jobOptions["srcDir"] + "/ -imagesListPath " + texturing_list + " -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():
|
||||
|
|
Ładowanie…
Reference in New Issue