kopia lustrzana https://github.com/OpenDroneMap/ODM
ODM win32 smoke test!
rodzic
6fd2533e81
commit
7cd63f87df
|
@ -0,0 +1,8 @@
|
||||||
|
@echo off
|
||||||
|
|
||||||
|
setlocal
|
||||||
|
call win32env.bat
|
||||||
|
|
||||||
|
start "ODM Console" cmd "/k venv\Scripts\activate"
|
||||||
|
|
||||||
|
endlocal
|
|
@ -33,18 +33,7 @@ mvstex_path = os.path.join(superbuild_bin_path, "texrecon")
|
||||||
omvs_densify_path = os.path.join(superbuild_bin_path, "OpenMVS", "DensifyPointCloud")
|
omvs_densify_path = os.path.join(superbuild_bin_path, "OpenMVS", "DensifyPointCloud")
|
||||||
omvs_reconstructmesh_path = os.path.join(superbuild_bin_path, "OpenMVS", "ReconstructMesh")
|
omvs_reconstructmesh_path = os.path.join(superbuild_bin_path, "OpenMVS", "ReconstructMesh")
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
# define txt2las path
|
|
||||||
txt2las_path = os.path.join(superbuild_path, 'src/las-tools/bin')
|
|
||||||
pdal_path = os.path.join(superbuild_path, 'build/pdal/bin')
|
|
||||||
|
|
||||||
# define odm modules path
|
|
||||||
odm_modules_path = os.path.join(root_path, "build/bin")
|
|
||||||
odm_modules_src_path = os.path.join(root_path, "modules")
|
|
||||||
|
|
||||||
odm_orthophoto_path = os.path.join(superbuild_bin_path, "odm_orthophoto")
|
odm_orthophoto_path = os.path.join(superbuild_bin_path, "odm_orthophoto")
|
||||||
>>>>>>> piero/omvsup
|
|
||||||
settings_path = os.path.join(root_path, 'settings.yaml')
|
settings_path = os.path.join(root_path, 'settings.yaml')
|
||||||
|
|
||||||
# Define supported image extensions
|
# Define supported image extensions
|
||||||
|
|
|
@ -1,11 +1,22 @@
|
||||||
import sys
|
import sys
|
||||||
HEADER = '\033[95m'
|
|
||||||
OKBLUE = '\033[94m'
|
if sys.platform == 'win32':
|
||||||
OKGREEN = '\033[92m'
|
# No colors on Windows, sorry!
|
||||||
DEFAULT = '\033[39m'
|
HEADER = ''
|
||||||
WARNING = '\033[93m'
|
OKBLUE = ''
|
||||||
FAIL = '\033[91m'
|
OKGREEN = ''
|
||||||
ENDC = '\033[0m'
|
DEFAULT = ''
|
||||||
|
WARNING = ''
|
||||||
|
FAIL = ''
|
||||||
|
ENDC = ''
|
||||||
|
else:
|
||||||
|
HEADER = '\033[95m'
|
||||||
|
OKBLUE = '\033[94m'
|
||||||
|
OKGREEN = '\033[92m'
|
||||||
|
DEFAULT = '\033[39m'
|
||||||
|
WARNING = '\033[93m'
|
||||||
|
FAIL = '\033[91m'
|
||||||
|
ENDC = '\033[0m'
|
||||||
|
|
||||||
# logging has too many quirks...
|
# logging has too many quirks...
|
||||||
class ODMLogger:
|
class ODMLogger:
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
@echo off
|
||||||
|
|
||||||
|
setlocal
|
||||||
|
|
||||||
|
call win32env.bat
|
||||||
|
call %ODMBASE%\venv\Scripts\activate
|
||||||
|
|
||||||
|
python "%ODMBASE%\run.py" %*
|
||||||
|
|
||||||
|
endlocal
|
||||||
|
|
|
@ -90,6 +90,10 @@ class ODMLoadDatasetStage(types.ODM_Stage):
|
||||||
# check if we rerun cell or not
|
# check if we rerun cell or not
|
||||||
images_database_file = os.path.join(tree.root_path, 'images.json')
|
images_database_file = os.path.join(tree.root_path, 'images.json')
|
||||||
if not io.file_exists(images_database_file) or self.rerun():
|
if not io.file_exists(images_database_file) or self.rerun():
|
||||||
|
if not os.path.exists(images_dir):
|
||||||
|
log.ODM_ERROR("There are no images in %s! Make sure that your project path and dataset name is correct. The current is set to: %s" % (images_dir, args.project_path))
|
||||||
|
exit(1)
|
||||||
|
|
||||||
files, rejects = get_images(images_dir)
|
files, rejects = get_images(images_dir)
|
||||||
if files:
|
if files:
|
||||||
# create ODMPhoto list
|
# create ODMPhoto list
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
set ODMBASE=%~dp0
|
||||||
|
set GDALBASE=%ODMBASE%venv\Lib\site-packages\osgeo
|
||||||
|
set OSFMBASE=%ODMBASE%SuperBuild\install\bin\opensfm\bin
|
||||||
|
|
||||||
|
set PATH=%GDALBASE%;%ODMBASE%SuperBuild\install\bin;%OSFMBASE%
|
||||||
|
set PROJ_LIB=%GDALBASE%\data\proj
|
Ładowanie…
Reference in New Issue