An open source command line toolkit for processing aerial drone imagery
 
 
 
 
 
 
Go to file
Dakota Benjamin 9332a02de6 Merge pull request #433 from OpenDroneMap/raw-resize-data
Keeps original images pristine in georef

Former-commit-id: ebaaf802a1
2016-12-06 15:25:55 -05:00
SuperBuild Update MD5 2016-10-28 11:22:57 -04:00
docker Update README 2016-11-30 08:33:05 -05:00
hooks Add Mvs-Texturing 2016-03-24 13:35:29 -04:00
img Add orthophoto example to README 2016-06-29 20:35:18 +00:00
licenses Added reference to MVS paper. Added MVS license link. 2016-07-18 15:23:34 -07:00
modules Misc. typos 2016-10-25 08:41:25 -07:00
opendm Merge pull request #389 from paulinus/dense 2016-10-13 17:51:01 +02:00
patched_files/src/graclus Revert "Revert "Upgrade Bundler + add support for Ceres solver"" 2015-08-21 14:13:42 -04:00
scripts Keeps original images pristine in georef 2016-12-05 16:06:03 -05:00
tests Compress test data images 2016-06-29 20:39:48 +00:00
.dockerignore Fix merge conflicts 2016-08-01 14:55:52 +00:00
.gitignore Update .gitignore 2016-02-19 12:02:50 -05:00
.gitmodules Remove ceres-solver submodule 2015-09-05 01:09:30 +02:00
CMakeLists.txt move binaries to a common directory 2015-11-30 15:47:44 +00:00
CONTRIBUTING.md Rename CONTRIBUTING to CONTRIBUTING.md 2016-07-25 14:52:49 -04:00
Dockerfile Configure-less Dockerfile. Configure.sh knows # of cores. 2016-07-21 17:15:56 -07:00
LICENSE Rename LICENCE to LICENSE 2016-02-19 12:00:59 -05:00
README.md Simplify instructions in readme 2016-11-23 15:19:19 -05:00
ccd_defs_check.py Add Mvs-Texturing 2016-03-24 13:35:29 -04:00
code_of_conduct.md update to 1.4 2016-07-18 14:58:40 -04:00
configure.sh Install pyproj 2016-09-30 15:43:27 +02:00
core2.Dockerfile Added dockerfile for march=core2 compilation 2016-11-30 13:20:26 +00:00
packages.Dockerfile Add pyproj dependency 2016-10-13 19:40:38 -07:00
run.py Added reference to MVS paper. Added MVS license link. 2016-07-18 15:23:34 -07:00
run.sh Use /bin/bash, remove test output 2016-06-29 20:36:36 +00:00
toledo_dataset_example_mesh.jpg JPEG compressed example 3D model image. 2016-07-19 17:28:37 -07:00

README.md

OpenDroneMap

What is it?

OpenDroneMap is an open source toolkit for processing aerial drone imagery. Typical drones use simple point-and-shoot cameras, so the images from drones, while from a different perspective, are similar to any pictures taken from point-and-shoot cameras, i.e. non-metric imagery. OpenDroneMap turns those simple images into three dimensional geographic data that can be used in combination with other geographic datasets.

In a word, OpenDroneMap is a toolchain for processing raw civilian UAS imagery to other useful products. What kind of products?

  1. Point Clouds
  2. Digital Surface Models
  3. Textured Digital Surface Models
  4. Orthorectified Imagery
  5. Classified Point Clouds
  6. Digital Elevation Models
  7. etc.

So far, it does Point Clouds, Digital Surface Models, Textured Digital Surface Models, and Orthorectified Imagery. Open Drone Map now includes state-of-the-art 3D reconstruction work by Michael Waechter, Nils Moehrle, and Michael Goesele. See their publication at http://www.gcc.tu-darmstadt.de/media/gcc/papers/Waechter-2014-LTB.pdf.

QUICKSTART

Requires Ubuntu 14.04 or later, see https://github.com/OpenDroneMap/odm_vagrant for running on Windows in a VM

Support for Ubuntu 12.04 is currently BROKEN with the addition of OpenSfM and Ceres-Solver. It is likely to remain broken unless a champion is found to fix it.

Download the latest release here

Current version: 0.2 (beta)

Installation

Before installing you need to set your environment variables. Open the ~/.bashrc file on your machine and add the following 3 lines at the end. The file can be opened with gedit ~/.bashrc if you are using an Ubuntu desktop environment. Be sure to replace the "/your/path/" with the correct path to the location where you extracted OpenDroneMap:

export PYTHONPATH=$PYTHONPATH:/your/path/OpenDroneMap/SuperBuild/install/lib/python2.7/dist-packages
export PYTHONPATH=$PYTHONPATH:/your/path/OpenDroneMap/SuperBuild/src/opensfm
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/your/path/OpenDroneMap/SuperBuild/install/lib

Now, enter the OpenDroneMap directory and compile all of the code by executing a single configuration script:

bash configure.sh

For Ubuntu 15.10 users, this will help you get running:

sudo apt-get install python-xmltodict
sudo ln -s /usr/lib/x86_64-linux-gnu/libproj.so.9 /usr/lib/libproj.so

Run OpenDroneMap

First you need a set of images, taken from a drone or otherwise.

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:

python run.py --project-path /path/to/project

There are many options for tuning your project. See the wiki or run python run.py -h

View Results

When the process finishes, the results will be organized as follows:

|-- images/
    |-- img-1234.jpg
    |-- ...
|-- images_resize/
    |-- img-1234.jpg
    |-- ...
|-- opensfm/
    |-- see mapillary/opensfm repository for more info
|-- pmvs/
    |-- recon0/
        |-- models/
            |-- option-0000.ply         # Dense point cloud (not georeferenced)
|-- odm_meshing/
    |-- odm_mesh.ply                    # A 3D mesh
    |-- odm_meshing_log.txt             # Output of the meshing task. May point out errors.
|-- odm_texturing/
    |-- odm_textured_model.obj          # Textured mesh
    |-- odm_textured_model_geo.obj      # Georeferenced textured mesh
    |-- texture_N.jpg                   # Associated textured images used by the model
|-- odm_georeferencing/
    |-- odm_georeferenced_model.ply     # A georeferenced dense point cloud
    |-- odm_georeferenced_model.ply.laz # LAZ format point cloud
    |-- odm_georeferenced_model.csv     # XYZ format point cloud
    |-- odm_georeferencing_log.txt      # Georeferencing log
    |-- odm_georeferencing_utm_log.txt  # Log for the extract_utm portion
|-- odm_georeferencing/
    |-- odm_orthophoto.png              # Orthophoto image (no coordinates)
    |-- odm_orthophoto.tif              # Orthophoto GeoTiff
    |-- odm_orthophoto_log.txt          # Log file
    |-- gdal_translate_log.txt          # Log for georeferencing the png file

Any file ending in .obj or .ply can be opened and viewed in MeshLab or similar software. That includes pmvs/recon0/models/option-000.ply, odm_meshing/odm_mesh.ply, odm_texturing/odm_textured_model[_geo].obj, or odm_georeferencing/odm_georeferenced_model.ply. Below is an example textured mesh:

You can also view the orthophoto GeoTIFF in QGIS or other mapping software:

Build and Run Using Docker

(Instructions below apply to Ubuntu 14.04, but the Docker image workflow has equivalent procedures for Mac OS X and Windows. See docs.docker.com)

OpenDroneMap is Dockerized, meaning you can use containerization to build and run it without tampering with the configuration of libraries and packages already installed on your machine. Docker software is free to install and use in this context. If you don't have it installed, see the Docker Ubuntu installation tutorial and follow the instructions up until "Create a Docker group" inclusive. Once Docker is installed, an OpenDroneMap Docker image can be created like so:

git clone https://github.com/OpenDroneMap/OpenDroneMap.git
cd OpenDroneMap
docker build -t packages -f packages.Dockerfile .
docker build -t odm_image .
docker run -it --user root\
     -v $(pwd)/images:/code/images\
     -v $(pwd)/odm_orthophoto:/code/odm_orthophoto\
     -v $(pwd)/odm_texturing:/code/odm_texturing\
     --rm odm_image 

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. 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.

User Interface

A web interface and API to OpenDroneMap is currently under active development in the WebODM repository.

Examples

Here are some other videos, which may be outdated:

Now that texturing is in the code base, you can access the full textured meshes using MeshLab. Open MeshLab, choose File:Import Mesh and choose your textured mesh from a location similar to the following: reconstruction-with-image-size-1200-results\odm_texturing\odm_textured_model.obj. Long term, the aim is for the toolchain to also be able to optionally push to a variety of online data repositories, pushing hi-resolution aerials to OpenAerialMap, point clouds to OpenTopography, and pushing digital elevation models to an emerging global repository (yet to be named...). That leaves only digital surface model meshes and UV textured meshes with no global repository home.

Documentation:

For documentation, please take a look at our wiki.Check here first if you are heaving problems. If you still need help, look through the issue queue or create one. There's also a general help chat here.

Developers

Help improve our software!

Join the chat at https://gitter.im/OpenDroneMap/OpenDroneMap

  1. Try to keep commits clean and simple
  2. Submit a pull request with detailed changes and test results