13 lines
572 B
Python
13 lines
572 B
Python
import subprocess
|
|
|
|
|
|
def run_docker_command(command):
|
|
result = subprocess.run(command, shell=True,
|
|
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
|
return result.stdout.decode('utf-8'), result.stderr.decode('utf-8')
|
|
|
|
|
|
command = "docker run -ti --rm -v g:/ODM_output/20241024100834/grid_1:/datasets opendronemap/odm --project-path /datasets project --max-concurrency 10 --force-gps --feature-quality lowest --orthophoto-resolution 10 --fast-orthophoto --skip-3dmodel --rerun-all"
|
|
stdout, stderr = run_docker_command(command)
|
|
print(stdout)
|