kopia lustrzana https://github.com/OpenDroneMap/ODM
Better error message when reconstruction cannot be completed
rodzic
368cf65898
commit
366481a26d
|
@ -1,4 +1,5 @@
|
||||||
import ecto
|
import ecto
|
||||||
|
import sys
|
||||||
|
|
||||||
from opendm import log
|
from opendm import log
|
||||||
from opendm import io
|
from opendm import io
|
||||||
|
@ -135,6 +136,17 @@ class ODMOpenSfMCell(ecto.Cell):
|
||||||
log.ODM_WARNING('Found a valid OpenSfM reconstruction file in: %s' %
|
log.ODM_WARNING('Found a valid OpenSfM reconstruction file in: %s' %
|
||||||
tree.opensfm_reconstruction)
|
tree.opensfm_reconstruction)
|
||||||
|
|
||||||
|
# Check that a reconstruction file has been created
|
||||||
|
if not io.file_exists(tree.opensfm_reconstruction):
|
||||||
|
log.ODM_ERROR("The program could not process this dataset using the current settings. "
|
||||||
|
"Check that images have enough overlap, "
|
||||||
|
"that there are enough recognizable features, "
|
||||||
|
"that the images are in focus. "
|
||||||
|
"You can also try to increase the --min-num-features parameter."
|
||||||
|
"The program will not exit.")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
# Always export VisualSFM's reconstruction and undistort images
|
# Always export VisualSFM's reconstruction and undistort images
|
||||||
# as we'll use these for texturing (after GSD estimation and resizing)
|
# as we'll use these for texturing (after GSD estimation and resizing)
|
||||||
if not args.ignore_gsd:
|
if not args.ignore_gsd:
|
||||||
|
|
Ładowanie…
Reference in New Issue