kopia lustrzana https://github.com/OpenDroneMap/ODM
rodzic
5b36bfed64
commit
fcd490ac35
|
@ -1,19 +1,29 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
import context
|
import sys
|
||||||
|
|
||||||
import system
|
import system
|
||||||
import log
|
import log
|
||||||
|
|
||||||
from datatypes import ODMApp
|
from datatypes import ODMApp
|
||||||
|
|
||||||
|
def usage():
|
||||||
|
log.ODM_WARNING('USAGE: %s dataset_path' % sys.argv[0])
|
||||||
|
log.ODM_ERROR('OpenDroneMap app finished - %s' % system.now())
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
||||||
log.ODM_INFO('Initializing OpenDroneMap app - %s' % system.now())
|
log.ODM_INFO('Initializing OpenDroneMap app - %s' % system.now())
|
||||||
|
|
||||||
|
if len(sys.argv) < 2:
|
||||||
|
usage()
|
||||||
|
else:
|
||||||
|
dataset_path = sys.argv[1]
|
||||||
|
|
||||||
# Initialize odm app
|
# Initialize odm app
|
||||||
# internally configure all tasks
|
# internally configure all tasks
|
||||||
app = ODMApp(context.scripts_path)
|
app = ODMApp(dataset_path)
|
||||||
|
|
||||||
# set from where we want to start
|
# set from where we want to start
|
||||||
# by default we will start from the beginnig
|
# by default we will start from the beginnig
|
||||||
|
|
Ładowanie…
Reference in New Issue