kopia lustrzana https://github.com/OpenDroneMap/ODM
rodzic
62e0dc3e6a
commit
2337ea69a1
34
README.md
34
README.md
|
@ -50,22 +50,13 @@ For Ubuntu 15.10 users, this will help you get running:
|
||||||
|
|
||||||
### Run OpenDroneMap
|
### Run OpenDroneMap
|
||||||
|
|
||||||
First you need a set of images, taken from a drone or otherwise.
|
First you need a set of images, taken from a drone or otherwise. Example data can be cloned from https://github.com/OpenDroneMap/odm_data
|
||||||
|
|
||||||
Create a project folder and places your images in an "images" directory:
|
|
||||||
|
|
||||||
|-- /path/to/project/
|
|
||||||
|-- images/
|
|
||||||
|-- img-1234.jpg
|
|
||||||
|-- ...
|
|
||||||
|
|
||||||
Example data can be cloned from https://github.com/OpenDroneMap/odm_data
|
|
||||||
|
|
||||||
Then run:
|
Then run:
|
||||||
|
|
||||||
python run.py --project-path /path/to/project
|
python run.py --project-path /path/to/project -i /path/to/images
|
||||||
|
|
||||||
There are many options for tuning your project. See the [wiki](https://github.com/OpenDroneMap/OpenDroneMap/wiki/Run-Time-Parameters) or run `python run.py -h`
|
The images will be copied over to the project path so you only need to specify the `-i /path/` once. There are many options for tuning your project. See the [wiki](https://github.com/OpenDroneMap/OpenDroneMap/wiki/Run-Time-Parameters) or run `python run.py -h`
|
||||||
|
|
||||||
### View Results
|
### View Results
|
||||||
|
|
||||||
|
@ -106,7 +97,7 @@ Any file ending in .obj or .ply can be opened and viewed in [MeshLab](http://mes
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
You can also view the orthophoto GeoTIFF in QGIS or other mapping software:
|
You can also view the orthophoto GeoTIFF in [QGIS](http://www.qgis.org/) or other mapping software:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
@ -126,22 +117,13 @@ like so:
|
||||||
docker build -t packages -f packages.Dockerfile .
|
docker build -t packages -f packages.Dockerfile .
|
||||||
docker build -t odm_image .
|
docker build -t odm_image .
|
||||||
docker run -it --user root\
|
docker run -it --user root\
|
||||||
-v $(pwd)/images:/code/images\
|
-v /path/to/images:/project/images \
|
||||||
-v $(pwd)/odm_orthophoto:/code/odm_orthophoto\
|
-v $(pwd)/project:/project \
|
||||||
-v $(pwd)/odm_texturing:/code/odm_texturing\
|
-v /path/to/gcp_list.txt:/code/gcp_list.txt \
|
||||||
--rm odm_image
|
--rm odm_image --project-path /project
|
||||||
|
|
||||||
Using this method, the containerized ODM will process the images in the OpenDroneMap/images directory and output results
|
Using this method, the containerized ODM will process the images in the OpenDroneMap/images directory and output results
|
||||||
to the OpenDroneMap/odm_orthophoto and OpenDroneMap/odm_texturing directories as described in the **Viewing Results** section.
|
to the OpenDroneMap/odm_orthophoto and OpenDroneMap/odm_texturing directories as described in the **Viewing Results** section.
|
||||||
If you want to view other results outside the Docker image simply add which directories you're interested in to the run command in the same pattern
|
|
||||||
established above. For example, if you're interested in the dense cloud results generated by PMVS and in the orthophoto,
|
|
||||||
simply use the following `docker run` command after building the image:
|
|
||||||
|
|
||||||
docker run -it --user root\
|
|
||||||
-v $(pwd)/images:/code/images\
|
|
||||||
-v $(pwd)/pmvs:/code/pmvs\
|
|
||||||
-v $(pwd)/odm_orthophoto:/code/odm_orthophoto\
|
|
||||||
--rm odm_image
|
|
||||||
|
|
||||||
To pass in custom parameters to the run.py script, simply pass it as arguments to the `docker run` command.
|
To pass in custom parameters to the run.py script, simply pass it as arguments to the `docker run` command.
|
||||||
|
|
||||||
|
|
4
run.py
4
run.py
|
@ -3,6 +3,7 @@
|
||||||
from opendm import log
|
from opendm import log
|
||||||
from opendm import config
|
from opendm import config
|
||||||
from opendm import system
|
from opendm import system
|
||||||
|
from opendm import io
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import ecto
|
import ecto
|
||||||
|
@ -26,6 +27,9 @@ if __name__ == '__main__':
|
||||||
# Force to provide the images path
|
# Force to provide the images path
|
||||||
if args.project_path is None:
|
if args.project_path is None:
|
||||||
usage()
|
usage()
|
||||||
|
elif not io.dir_exists(args.project_path):
|
||||||
|
log.ODM_WARNING('Directory %s does not exist. Creating it now.' % args.project_path)
|
||||||
|
system.mkdir_p(os.path.abspath(args.project_path))
|
||||||
|
|
||||||
#If user asks to rerun everything, delete all of the existing progress directories.
|
#If user asks to rerun everything, delete all of the existing progress directories.
|
||||||
# TODO: Move this somewhere it's not hard-coded
|
# TODO: Move this somewhere it's not hard-coded
|
||||||
|
|
Ładowanie…
Reference in New Issue