This commit is contained in:
weixin_46229132 2025-02-09 15:42:31 +08:00
parent 59d6ef44a8
commit 82fdcdca87
2 changed files with 1 additions and 13 deletions

View File

@ -429,7 +429,7 @@ class MergeObj:
self.logger.info(f"开始执行格式转换")
docker_command = (
f"docker run --rm -it "
f"-v {self.output_model_dir}:/data "
f"-v {output_model_dir}:/data "
f"-e LD_LIBRARY_PATH=/opt/osg/build/lib:$LD_LIBRARY_PATH "
f"osg-ubuntu2004 osgconv /data/textured_model.obj /data/textured_model.osgb"
)

View File

@ -1,12 +0,0 @@
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')
if __name__ == "__main__":
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)