Better error message when reconstruction cannot be completed

pull/955/head
Piero Toffanin 2019-03-01 12:35:53 -05:00
rodzic 368cf65898
commit 366481a26d
1 zmienionych plików z 12 dodań i 0 usunięć

Wyświetl plik

@ -1,4 +1,5 @@
import ecto
import sys
from opendm import log
from opendm import io
@ -135,6 +136,17 @@ class ODMOpenSfMCell(ecto.Cell):
log.ODM_WARNING('Found a valid OpenSfM reconstruction file in: %s' %
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
# as we'll use these for texturing (after GSD estimation and resizing)
if not args.ignore_gsd: