kopia lustrzana https://github.com/OpenDroneMap/ODM
image_groups.txt file support
rodzic
d1d790024c
commit
7210e99e3a
|
@ -69,7 +69,7 @@ RUN pip install -U \
|
||||||
numpy==1.15.4 \
|
numpy==1.15.4 \
|
||||||
psutil \
|
psutil \
|
||||||
pyproj \
|
pyproj \
|
||||||
PyYAML \
|
PyYAML==3.13 \
|
||||||
repoze.lru \
|
repoze.lru \
|
||||||
scipy \
|
scipy \
|
||||||
shapely \
|
shapely \
|
||||||
|
|
|
@ -71,7 +71,7 @@ install() {
|
||||||
libboost-thread-dev \
|
libboost-thread-dev \
|
||||||
python-pyproj
|
python-pyproj
|
||||||
|
|
||||||
pip install -U PyYAML \
|
pip install -U PyYAML==3.13 \
|
||||||
exifread \
|
exifread \
|
||||||
gpxpy \
|
gpxpy \
|
||||||
xmltodict \
|
xmltodict \
|
||||||
|
|
|
@ -57,9 +57,10 @@ def setup(args, images_path, opensfm_path, photos, gcp_path=None, append_config
|
||||||
if not io.dir_exists(opensfm_path):
|
if not io.dir_exists(opensfm_path):
|
||||||
system.mkdir_p(opensfm_path)
|
system.mkdir_p(opensfm_path)
|
||||||
|
|
||||||
# create file list
|
|
||||||
list_path = io.join_paths(opensfm_path, 'image_list.txt')
|
list_path = io.join_paths(opensfm_path, 'image_list.txt')
|
||||||
if not io.file_exists(list_path) or rerun:
|
if not io.file_exists(list_path) or rerun:
|
||||||
|
|
||||||
|
# create file list
|
||||||
has_alt = True
|
has_alt = True
|
||||||
with open(list_path, 'w') as fout:
|
with open(list_path, 'w') as fout:
|
||||||
for photo in photos:
|
for photo in photos:
|
||||||
|
@ -111,9 +112,16 @@ def setup(args, images_path, opensfm_path, photos, gcp_path=None, append_config
|
||||||
config_filename = io.join_paths(opensfm_path, 'config.yaml')
|
config_filename = io.join_paths(opensfm_path, 'config.yaml')
|
||||||
with open(config_filename, 'w') as fout:
|
with open(config_filename, 'w') as fout:
|
||||||
fout.write("\n".join(config))
|
fout.write("\n".join(config))
|
||||||
|
|
||||||
|
# check for image_groups.txt (split-merge)
|
||||||
|
image_groups_file = os.path.join(args.project_path, "image_groups.txt")
|
||||||
|
if io.file_exists(image_groups_file):
|
||||||
|
log.ODM_DEBUG("Copied image_groups.txt to OpenSfM directory")
|
||||||
|
io.copy(image_groups_file, os.path.join(opensfm_path, "image_groups.txt"))
|
||||||
else:
|
else:
|
||||||
log.ODM_WARNING("%s already exists, not rerunning OpenSfM setup" % list_path)
|
log.ODM_WARNING("%s already exists, not rerunning OpenSfM setup" % list_path)
|
||||||
|
|
||||||
|
|
||||||
def feature_matching(opensfm_project_path, rerun=False):
|
def feature_matching(opensfm_project_path, rerun=False):
|
||||||
if not feature_matching_done(opensfm_project_path) or rerun:
|
if not feature_matching_done(opensfm_project_path) or rerun:
|
||||||
run('extract_metadata', opensfm_project_path)
|
run('extract_metadata', opensfm_project_path)
|
||||||
|
|
|
@ -69,7 +69,7 @@ RUN pip install -U \
|
||||||
numpy==1.15.4 \
|
numpy==1.15.4 \
|
||||||
psutil \
|
psutil \
|
||||||
pyproj \
|
pyproj \
|
||||||
PyYAML \
|
PyYAML==3.13 \
|
||||||
repoze.lru \
|
repoze.lru \
|
||||||
scipy \
|
scipy \
|
||||||
shapely \
|
shapely \
|
||||||
|
|
|
@ -65,7 +65,7 @@ class ODMApp:
|
||||||
build_overviews=args.build_overviews,
|
build_overviews=args.build_overviews,
|
||||||
max_concurrency=args.max_concurrency,
|
max_concurrency=args.max_concurrency,
|
||||||
verbose=args.verbose)
|
verbose=args.verbose)
|
||||||
|
|
||||||
if not args.video:
|
if not args.video:
|
||||||
# Normal pipeline
|
# Normal pipeline
|
||||||
self.first_stage = dataset
|
self.first_stage = dataset
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import os, sys
|
import os
|
||||||
|
import shutil
|
||||||
from opendm import log
|
from opendm import log
|
||||||
from opendm import osfm
|
from opendm import osfm
|
||||||
from opendm import types
|
from opendm import types
|
||||||
|
@ -43,7 +44,7 @@ class ODMSplitStage(types.ODM_Stage):
|
||||||
osfm.run("create_submodels", tree.opensfm)
|
osfm.run("create_submodels", tree.opensfm)
|
||||||
else:
|
else:
|
||||||
log.ODM_WARNING("Submodels directory already exist at: %s" % tree.submodels_path)
|
log.ODM_WARNING("Submodels directory already exist at: %s" % tree.submodels_path)
|
||||||
|
|
||||||
# TODO: on a network workflow we probably stop here
|
# TODO: on a network workflow we probably stop here
|
||||||
# and let NodeODM take over
|
# and let NodeODM take over
|
||||||
# exit(0)
|
# exit(0)
|
||||||
|
|
Ładowanie…
Reference in New Issue