• Stars
    star
    4,603
  • Rank 8,965 (Top 0.2 %)
  • Language
    Python
  • License
    GNU Affero Genera...
  • Created almost 10 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A command line toolkit to generate maps, point clouds, 3D models and DEMs from drone, balloon or kite images. πŸ“·

ODM Logo

An open source command line toolkit for processing aerial drone imagery. ODM turns simple 2D images into:

  • Classified Point Clouds
  • 3D Textured Models
  • Georeferenced Orthorectified Imagery
  • Georeferenced Digital Elevation Models

images-diag

The application is available for Windows, Mac and Linux and it works from the command line, making it ideal for power users, scripts and for integration with other software.

If you would rather not type commands in a shell and are looking for a friendly user interface, check out WebODM.

Quickstart

The easiest way to run ODM on is via docker. To install docker, see docs.docker.com. Once you have docker installed and working, you can run ODM by placing some images (JPEGs or TIFFs) in a folder named β€œimages” (for example C:\Users\youruser\datasets\project\images or /home/youruser/datasets/project/images) and simply run from a Command Prompt / Terminal:

# Windows
docker run -ti --rm -v c:/Users/youruser/datasets:/datasets opendronemap/odm --project-path /datasets project

# Mac/Linux
docker run -ti --rm -v /home/youruser/datasets:/datasets opendronemap/odm --project-path /datasets project

You can pass additional parameters by appending them to the command:

docker run -ti --rm -v /datasets:/datasets opendronemap/odm --project-path /datasets project [--additional --parameters --here]

For example, to generate a DSM (--dsm) and increase the orthophoto resolution (--orthophoto-resolution 2) :

docker run -ti --rm -v /datasets:/datasets opendronemap/odm --project-path /datasets project --dsm --orthophoto-resolution 2

Viewing Results

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

|-- images/
    |-- img-1234.jpg
    |-- ...
|-- opensfm/
    |-- see mapillary/opensfm repository for more info
|-- odm_meshing/
    |-- odm_mesh.ply                    # A 3D mesh
|-- odm_texturing/
    |-- odm_textured_model.obj          # Textured mesh
    |-- odm_textured_model_geo.obj      # Georeferenced textured mesh
|-- odm_georeferencing/
    |-- odm_georeferenced_model.laz     # LAZ format point cloud
|-- odm_orthophoto/
    |-- odm_orthophoto.tif              # Orthophoto GeoTiff

You can use the following free and open source software to open the files generated in ODM:

  • .tif (GeoTIFF): QGIS
  • .laz (Compressed LAS): CloudCompare
  • .obj (Wavefront OBJ), .ply (Stanford Triangle Format): MeshLab

Note! Opening the .tif files generated by ODM in programs such as Photoshop or GIMP might not work (they are GeoTIFFs, not plain TIFFs). Use QGIS instead.

API

ODM can be made accessible from a network via NodeODM.

Documentation

See http://docs.opendronemap.org for tutorials and more guides.

Forum

We have a vibrant community forum. You can search it for issues you might be having with ODM and you can post questions there. We encourage users of ODM to participate in the forum and to engage with fellow drone mapping users.

Windows Setup

ODM can be installed natively on Windows. Just download the latest setup from the releases page. After opening the ODM Console you can process datasets by typing:

run C:\Users\youruser\datasets\project  [--additional --parameters --here]

Snap Package

ODM is now available as a Snap Package from the Snap Store. To install you may use the Snap Store (available itself as a Snap Package) or the command line:

sudo snap install --edge opendronemap

To run, you will need a terminal window into which you can type:

opendronemap

# or

snap run opendronemap

# or

/snap/bin/opendronemap

Snap packages will be kept up-to-date automatically, so you don't need to update ODM manually.

GPU Acceleration

ODM has support for doing SIFT feature extraction on a GPU, which is about 2x faster than the CPU on a typical consumer laptop. To use this feature, you need to use the opendronemap/odm:gpu docker image instead of opendronemap/odm and you need to pass the --gpus all flag:

docker run -ti --rm -v c:/Users/youruser/datasets:/datasets --gpus all opendronemap/odm:gpu --project-path /datasets project

When you run ODM, if the GPU is recognized, in the first few lines of output you should see:

[INFO]    Writing exif overrides
[INFO]    Maximum photo dimensions: 4000px
[INFO]    Found GPU device: Intel(R) OpenCL HD Graphics
[INFO]    Using GPU for extracting SIFT features

The SIFT GPU implementation is CUDA-based, so should work with most NVIDIA graphics cards of the GTX 9xx Generation or newer.

If you have an NVIDIA card, you can test that docker is recognizing the GPU by running:

docker run --rm --gpus all nvidia/cuda:10.0-base nvidia-smi

If you see an output that looks like this:

Fri Jul 24 18:51:55 2020       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.82       Driver Version: 440.82       CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |

You're in good shape!

See https://github.com/NVIDIA/nvidia-docker and https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#docker for information on docker/NVIDIA setup.

WSL or WSL2 Install

Note: This requires that you have installed WSL already by following the instructions on Microsoft's Website.

You can run ODM via WSL or WSL2 by downloading the rootfs.tar.gz file from the releases page on GitHub. Once you have the file saved to your Downloads folder in Windows, open a PowerShell or CMD window by right-clicking the Flag Menu (bottom left by default) and selecting "Windows PowerShell", or alternatively by using the Windows Terminal from the Windows Store.

Inside a PowerShell window, or Windows Terminal running PowerShell, type the following:

# PowerShell
wsl.exe --import ODM $env:APPDATA\ODM C:\path\to\your\Downloads\rootfs.tar.gz

Alternatively if you're using CMD.exe or the CMD support in Windows Terminal type:

# CMD
wsl.exe --import ODM %APPDATA%\ODM C:\path\to\your\Downloads\rootfs.tar.gz

In either case, make sure you replace C:\path\to\your\Downloads\rootfs.tar.gz with the actual path to your rootfs.tar.gz file.

This will save a new Hard Disk image to your Windows AppData folder at C:\Users\username\AppData\roaming\ODM (where username is your Username in Windows), and will set-up a new WSL "distro" called ODM.

You may start the ODM distro by using the relevant option in the Windows Terminal (from the Windows Store) or by executing wsl.exe -d ODM in a PowerShell or CMD window.

ODM is installed to the distro's /code directory. You may execute it with:

/code/run.sh

Updating ODM in WSL

The easiest way to update the installation of ODM is to download the new rootfs.tar.gz file and import it as another distro. You may then unregister the original instance the same way you delete ODM from WSL (see next heading).

Deleting an ODM in WSL instance

wsl.exe --unregister ODM

Finally you'll want to delete the files by using your Windows File Manager (Explorer) to navigate to %APPDATA%, find the ODM directory, and delete it by dragging it to the recycle bin. To permanently delete it empty the recycle bin.

If you have installed to a different directory by changing the --import command you ran to install you must use that directory name to delete the correct files. This is likely the case if you have multiple ODM installations or are updating an already-installed installation.

Native Install (Ubuntu 21.04)

You can run ODM natively on Ubuntu 21.04 (although we don't recommend it):

git clone https://github.com/OpenDroneMap/ODM
cd ODM
bash configure.sh install

You can then process datasets with ./run.sh /datasets/odm_data_aukerman

Native Install (MacOS)

You can run ODM natively on Intel/ARM MacOS.

First install:

  • Xcode 13 (not 14, there's currently a bug)
  • Homebrew

Then Run:

git clone https://github.com/OpenDroneMap/ODM
cd ODM
bash configure_macos.sh install

You can then process datasets with ./run.sh /datasets/odm_data_aukerman

This could be improved in the future. Helps us create a Homebrew formula.

Updating a native installation

When updating to a newer version of native ODM, it is recommended that you run:

bash configure.sh reinstall

to ensure all the dependent packages and modules get updated.

Build Docker Images From Source

If you want to rebuild your own docker image (if you have changed the source code, for example), from the ODM folder you can type:

docker build -t my_odm_image --no-cache .

When building your own Docker image, if image size is of importance to you, you should use the --squash flag, like so:

docker build --squash -t my_odm_image .

This will clean up intermediate steps in the Docker build process, resulting in a significantly smaller image (about half the size).

Experimental flags need to be enabled in Docker to use the --squash flag. To enable this, insert the following into the file /etc/docker/daemon.json:

{
   "experimental": true
}

After this, you must restart docker.

Video Support

Starting from version 3.0.4, ODM can automatically extract images from video files (.mp4, .mov, .lrv, .ts). Just place one or more video files into the images folder and run the program as usual. Subtitles files (.srt) with GPS information are also supported. Place .srt files in the images folder, making sure that the filenames match. For example, my_video.mp4 ==> my_video.srt (case-sensitive).

Developers

Help improve our software! We welcome contributions from everyone, whether to add new features, improve speed, fix existing bugs or add support for more cameras. Check our code of conduct, the contributing guidelines and how decisions are made.

For Linux users, the easiest way to modify the software is to make sure docker is installed, clone the repository and then run from a shell:

$ DATA=/path/to/datasets ./start-dev-env.sh

Where /path/to/datasets is a directory where you can place test datasets (it can also point to an empty directory if you don't have test datasets).

Run configure to set up the required third party libraries:

(odmdev) [user:/code] master+* Β± bash configure.sh reinstall

You can now make changes to the ODM source. When you are ready to test the changes you can simply invoke:

(odmdev) [user:/code] master+* Β± ./run.sh --project-path /datasets mydataset

If you have questions, join the developer's chat at https://community.opendronemap.org/c/developers-chat/21

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

Troubleshooting

The dev environment makes use of opendronemap/nodeodm by default. You may want to run docker pull opendronemap/nodeodm before running ./start-dev-env.sh to avoid using an old cached version.

In order to make a clean build, remove ~/.odm-dev-home and ODM/.setupdevenv.

Credits

ODM makes use of several libraries and other awesome open source projects to perform its tasks. Among them we'd like to highlight:

Citation

OpenDroneMap Authors ODM - A command line toolkit to generate maps, point clouds, 3D models and DEMs from drone, balloon or kite images. OpenDroneMap/ODM GitHub Page 2020; https://github.com/OpenDroneMap/ODM

Trademark

See Trademark Guidelines

More Repositories

1

WebODM

User-friendly, commercial-grade software for processing aerial imagery. πŸ›©
JavaScript
2,662
star
2

FIELDimageR

FIELDimageR: A R package to analyze orthomosaic images from agricultural field trials. This package is a compilation of functions to analyze pos-mosaicking images from research fields, and allows to: crop the image; remove soil effect; build vegetation indices; rotate the image; build the plot shapefile; extract information for each plot; and evaluate stand count, canopy percentage, and plant height.
R
220
star
3

Obj2Tiles

Converts OBJ files to OGC 3D tiles by performing splitting, decimation and conversion
C#
194
star
4

NodeODM

A lightweight REST API to access aerial image processing engines such as ODM or MicMac
JavaScript
193
star
5

ODMdata

Example data for OpenDroneMap: https://OpenDroneMap.org sourced from a variety of sources
134
star
6

PyODM

A Python SDK for adding aerial image processing capabilities to your applications πŸ”Œ
Python
91
star
7

dem2mesh

Quickly generate 2.5D meshes from elevation models.
C++
81
star
8

ClusterODM

A NodeODM API compatible autoscalable load balancer and task tracker for easy horizontal scaling ♆
JavaScript
80
star
9

NodeMICMAC

A Lightweight REST API to Access MICMAC Photogrammetry and SFM Engine.
JavaScript
78
star
10

CloudODM

A command line tool to process aerial imagery in the cloud. 🌩
Go
60
star
11

LiveODM

Live DVD/USB ISO with ODM, node-ODM and WebODM pre-installed.
Shell
49
star
12

pypopsift

Python module for CUDA accelerated SIFT on GPUs
C++
32
star
13

docs

πŸŽ‰ Contribute to OpenDroneMap's documentation! Read how below! πŸŽ‰
Python
25
star
14

python-WebODM

Python client for WebODM API
Python
22
star
15

UAVArena

Drone mapping software outputs compared side by side! Which will win? βš”οΈ
JavaScript
20
star
16

odm_vagrant

Vagrant machine for using OpenDroneMap
19
star
17

posm-gcpi

Ground Control Point interface (GCPi) for OpenDroneMap
JavaScript
15
star
18

dem2points

Extract 3D points from digital elevation models
C++
13
star
19

ODMSemantic3D

An open photogrammetry dataset of classified 3D point clouds for automated semantic segmentation. CC BY-SA 4.0
Shell
12
star
20

odm_orthophoto

ODM Orthophoto Module - Rasterize Textured 3D Models to PNG
C++
10
star
21

SkyRemoval

Create sky masks to improve photogrammetric reconstruction
Python
10
star
22

odm_data_aukerman

10
star
23

FPCFilter

Fast Point Cloud Filtering
C++
10
star
24

orthorectify

Orthorectify images from ODM reconstruction
C++
9
star
25

awesome-aerial-mapping

Awesome resources for learning about aerial mapping
8
star
26

odm-benchmarks

Benchmark data index for OpenDroneMap and WebODM
JavaScript
8
star
27

airsim-generator

Generate synthetic drone photos and elevation models from Microsoft AirSim
Python
8
star
28

odm_data_zoo

7
star
29

presentations

JavaScript
7
star
30

oats

OpenDroneMap Automated Testing Suite
Shell
6
star
31

RSCalibration

Docs and scripts to estimate a camera's rolling shutter readout time
HTML
6
star
32

WebODM-Locale

Localization files for WebODM
5
star
33

odm_data_langley

OpenDroneMap Langley dataset
5
star
34

opendronemap-ecs

Serverless API to get opendronemap tasks running on AWS Elastic Container Service (ECS)
JavaScript
5
star
35

odm-start-deprecated

Tutorial / Startup doc for using OpenDroneMap
4
star
36

odm_data_bellus

4
star
37

odm_data_copr

odm_data copr dataset
3
star
38

odm_data_garfield_msp

3
star
39

odm_data_lewis

Lewis Road Riding Arena Flight
2
star
40

odm_data_caliterra

Submodule of ODM data for Caliterra dataset
2
star
41

odm_data_seneca

OpenDroneMap Seneca dataset
2
star
42

images2geojson

Convert OpenDroneMap's images.json image database to GeoJSON point collections.
JavaScript
2
star
43

odm_data_benchmark

OpenDroneMap benchmark dataset
2
star
44

WestCreekPleasantValley

Stream topography drone flight, taken with GoPro Hero 4 (3.37mm lens) on 3DR Solo
2
star
45

odm_data_helenenschacht

2
star
46

syntheticDSM

Synthetic georeferenced DSM files to verify volume calculation accuracy
2
star
47

wiki-assets

1
star
48

multispectral-docs

Resources for getting started in multispectral processing
1
star
49

opendronemap.github.io

1
star
50

odm_data_apt

Trail (sidewalk) OpenDroneMap test dataset
1
star
51

UAVArena-data

Tilesets for the UAVArena Web Application
1
star
52

WebODM-Plugins-Archive

Plugins waiting for a hero to fix them
JavaScript
1
star
53

odm_data_toledo

1
star
54

documents

The transparent bylaws, policies and rules of OpenDroneMap βš–οΈ
1
star
55

odm_data_waterbury

1
star
56

odm_data_rv_nir

1
star