kopia lustrzana https://github.com/OpenDroneMap/ODM
Finding keypoints, each image in new line, zerofill numbers and same padding for output
Former-commit-id: 4a8182faf7
gh-pages
rodzic
0f23accc9f
commit
e80f050256
7
run.py
7
run.py
|
@ -511,13 +511,14 @@ def getKeypoints():
|
||||||
|
|
||||||
if fileObject["isOk"]:
|
if fileObject["isOk"]:
|
||||||
if not os.path.isfile(jobOptions["jobDir"] + "/" + fileObject["base"] + ".key.bin"):
|
if not os.path.isfile(jobOptions["jobDir"] + "/" + fileObject["base"] + ".key.bin"):
|
||||||
vlsiftJobs += "echo -n \"" + str(c) + "/" + str(objectStats["good"]) + " - \" && convert -format pgm \"" + fileObject["step_0_resizedImage"] + "\" \"" + fileObject["step_1_pgmFile"] + "\""
|
vlsiftJobs += "echo -n \" " + str(c).zfill(len(str(objectStats["good"]))) + "/" + str(objectStats["good"]) + " - \" && convert -format pgm \"" + fileObject["step_0_resizedImage"] + "\" \"" + fileObject["step_1_pgmFile"] + "\""
|
||||||
vlsiftJobs += " && \"" + BIN_PATH + "/vlsift\" \"" + fileObject["step_1_pgmFile"] + "\" -o \"" + fileObject["step_1_keyFile"] + ".sift\" > /dev/null && perl \"" + BIN_PATH + "/../convert_vlsift_to_lowesift.pl\" \"" + jobOptions["jobDir"] + "/" + fileObject["base"] + "\""
|
vlsiftJobs += " && \"" + BIN_PATH + "/vlsift\" \"" + fileObject["step_1_pgmFile"] + "\" -o \"" + fileObject["step_1_keyFile"] + ".sift\" > /dev/null && perl \"" + BIN_PATH + "/../convert_vlsift_to_lowesift.pl\" \"" + jobOptions["jobDir"] + "/" + fileObject["base"] + "\""
|
||||||
vlsiftJobs += " && gzip -f \"" + fileObject["step_1_keyFile"] + "\""
|
vlsiftJobs += " && gzip -f \"" + fileObject["step_1_keyFile"] + "\""
|
||||||
vlsiftJobs += " && rm -f \"" + fileObject["step_1_pgmFile"] + "\""
|
vlsiftJobs += " && rm -f \"" + fileObject["step_1_pgmFile"] + "\""
|
||||||
vlsiftJobs += " && rm -f \"" + fileObject["step_1_keyFile"] + ".sift\"\n"
|
vlsiftJobs += " && rm -f \"" + fileObject["step_1_keyFile"] + ".sift\""
|
||||||
|
vlsiftJobs += " && echo \"\"\n"
|
||||||
else:
|
else:
|
||||||
print "using existing " + jobOptions["jobDir"] + "/" + fileObject["base"] + ".key.bin"
|
print " using existing " + jobOptions["jobDir"] + "/" + fileObject["base"] + ".key.bin"
|
||||||
|
|
||||||
siftDest = open(jobOptions["step_1_vlsift"], 'w')
|
siftDest = open(jobOptions["step_1_vlsift"], 'w')
|
||||||
siftDest.write(vlsiftJobs)
|
siftDest.write(vlsiftJobs)
|
||||||
|
|
Ładowanie…
Reference in New Issue