OpenDroneMap-ODM/scripts/run.py

27 wiersze
579 B
Python

#!/usr/bin/python
import context
import system
import log
from datatypes import ODMApp
if __name__ == '__main__':
log.ODM_INFO('Initializing OpenDroneMap app - %s' % system.now())
# Initialize odm app
# internally configure all tasks
app = ODMApp(context.scripts_path)
# set from where we want to start
# by default we will start from the beginnig
init_task_id = 0
log.ODM_INFO('Runnning OpenDroneMap app from state %s - %s' % (init_task_id, system.now()))
# run all tasks
app.run(init_task_id)
log.ODM_INFO('OpenDroneMap app finished - %s' % system.now())