- Notifications
You must be signed in to change notification settings - Fork1.2k
A command line toolkit to generate maps, point clouds, 3D models and DEMs from drone, balloon or kite images. 📷
License
OpenDroneMap/ODM
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
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
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 outWebODM.
The easiest way to run ODM is via docker. To install docker, seedocs.docker.com. Once you have docker installed andworking, you can get ODM by running from a Command Prompt / Terminal:
docker pull opendronemap/odm
Run ODM by placing some images (JPEGs, TIFFs or DNGs) in a folder named “images” (for exampleC:\Users\youruser\datasets\project\images or/home/youruser/datasets/project/images) and simply run from a Command Prompt / Terminal:
# Windowsdocker run -ti --rm -v c:/Users/youruser/datasets:/datasets opendronemap/odm --project-path /datasets project# Mac/Linuxdocker run -ti --rm -v /home/youruser/datasets:/datasets opendronemap/odm --project-path /datasets projectYou can passadditional 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
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 GeoTiffYou 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). UseQGIS instead.
ODM can be made accessible from a network viaNodeODM.
Seehttp://docs.opendronemap.org for tutorials and more guides.
We have a vibrantcommunity forum. You cansearch 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.
ODM can be installed natively on Windows. Just download the latest setup from thereleases page. After opening the ODM Console you can process datasets by typing:
run C:\Users\youruser\datasets\project [--additional --parameters --here]
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 theopendronemap/odm:gpu docker image instead ofopendronemap/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 --feature-type siftWhen 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 featuresThe 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-smiIf 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!
Seehttps://github.com/NVIDIA/nvidia-docker andhttps://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#docker for information on docker/NVIDIA setup.
You can run ODM natively on Ubuntu 24.04 (although we don't recommend it):
git clone https://github.com/OpenDroneMap/ODMcd ODMbash configure.sh installYou can then process datasets with./run.sh /datasets/odm_data_aukerman
Warning: Installation on Mac is currently unmaintained, and may not work out-of-the-box. See thisissue.
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/ODMcd ODMbash configure_macos.sh installYou can then process datasets with./run.sh /datasets/odm_data_aukerman
This could be improved in the future.Helps us create a Homebrew formula.
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.
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.
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 theimages folder and run the program as usual. Subtitles files (.srt) with GPS information are also supported. Place .srt files in theimages folder, making sure that the filenames match. For example,my_video.mp4 ==>my_video.srt (case-sensitive).
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 ourcode of conduct, thecontributing guidelines andhow 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 reinstallYou 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 mydatasetdocker stop odmdev
change your_username to your username
docker start odmdevdockerexec -ti odmdev bashsu your_usernameIf you have questions, join the developer's chat athttps://community.opendronemap.org/c/developers-chat/21
- Try to keep commits clean and simple
- Submit a pull request with detailed changes and test results
- Have fun!
The dev environment makes use ofopendronemap/nodeodm by default. You may want to rundocker 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 andODM/.setupdevenv.
ODM makes use ofseveral libraries and other awesome open source projects to perform its tasks. Among them we'd like to highlight:
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
About
A command line toolkit to generate maps, point clouds, 3D models and DEMs from drone, balloon or kite images. 📷
Topics
Resources
License
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.

