OpenDroneMap-ODM/README.md

148 wiersze
6.4 KiB
Markdown
Czysty Zwykły widok Historia

2020-04-19 23:12:46 +00:00
![ODM Logo](https://user-images.githubusercontent.com/1951843/79699889-438ce580-8260-11ea-9c79-8667834aeab2.png)
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
An open source command line toolkit for processing aerial drone imagery. ODM turns simple 2D images into:
2020-01-21 14:57:43 +00:00
2020-04-19 23:12:46 +00:00
* Classified Point Clouds
* 3D Textured Models
* Georeferenced Orthorectified Imagery
* Georeferenced Digital Elevation Models
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
![images-diag](https://user-images.githubusercontent.com/1951843/79700615-f7906f80-8264-11ea-956a-cdc37cdeb263.png)
2018-11-07 01:29:20 +00:00
2020-04-19 23:12:46 +00:00
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.
2020-04-19 23:12:46 +00:00
If you would rather not type commands in a shell and are looking for a friendly user interface, check out [WebODM](https://github.com/OpenDroneMap/WebODM).
2018-01-11 02:23:26 +00:00
2020-01-21 14:57:43 +00:00
## Quickstart
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
The easiest way to run ODM is via docker. To install docker, see [docs.docker.com](https://docs.docker.com). Once you have docker installed and [working](https://docs.docker.com/get-started/#test-docker-installation), you can run ODM by placing some images (JPEGs or TIFFs) in a folder named “images” (for example `/datasets/project/images` or `C:\Users\youruser\datasets\project\images`) and simply run from a Terminal / Command Prompt:
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
```bash
# Windows
docker run -ti --rm -v c:/Users/youruser/datasets:/datasets opendronemap/odm --project-path /datasets project
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
# Mac/Linux
docker run -ti --rm -v /datasets:/datasets opendronemap/odm --project-path /datasets project
2018-01-11 02:23:26 +00:00
```
2020-04-19 23:12:46 +00:00
You can pass [additional parameters](https://docs.opendronemap.org/arguments.html) by appending them to the command:
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
```bash
docker run -ti --rm -v /datasets:/datasets opendronemap/odm --project-path /datasets project [--additional --parameters --here]
```
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
For example, to generate a DSM (`--dsm`) and increase the orthophoto resolution (`--orthophoto-resolution 2`) :
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
```bash
docker run -ti --rm -v /datasets:/datasets opendronemap/odm --project-path /datasets project --dsm --orthophoto-resolution 2
```
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
## Viewing Results
2018-01-11 02:23:26 +00:00
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/
2018-06-18 15:27:33 +00:00
|-- odm_georeferenced_model.laz # LAZ format point cloud
2018-01-11 02:23:26 +00:00
|-- odm_orthophoto/
|-- odm_orthophoto.tif # Orthophoto GeoTiff
2020-04-19 23:12:46 +00:00
You can use the following free and open source software to open the files generated in ODM:
* .tif (GeoTIFF): [QGIS](http://www.qgis.org/)
* .laz (Compressed LAS): [CloudCompare](https://www.cloudcompare.org/)
* .obj (Wavefront OBJ), .ply (Stanford Triangle Format): [MeshLab](http://www.meshlab.net/)
**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](http://www.qgis.org/) instead.
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
## API
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
ODM can be made accessible from a network via [NodeODM](https://github.com/OpenDroneMap/NodeODM).
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
## Documentation
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
See http://docs.opendronemap.org for tutorials and more guides.
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
## Forum
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
We have a vibrant [community forum](https://community.opendronemap.org/). You can [search it](https://community.opendronemap.org/search?expanded=true) for issues you might be having with ODM and you can post questions there. We encourage users of ODM to partecipate in the forum and to engage with fellow drone mapping users.
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
## Native Install (Ubuntu 16.04)
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
You can run ODM natively on Ubuntu 16.04 LTS (although we don't recommend it):
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
1. Download the source from [here](https://github.com/OpenDroneMap/ODM/archive/master.zip)
2. Run `bash configure.sh install`
3. Download a sample dataset from [here](https://github.com/OpenDroneMap/odm_data_aukerman/archive/master.zip) (about 550MB) and extract it in `/datasets/aukerman`
4. Run `./run.sh --project-path /datasets odm_data_aukerman`
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
### Updating a native installation
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
When updating to a newer version of ODM, it is recommended that you run
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
bash configure.sh reinstall
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
to ensure all the dependent packages and modules get updated.
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
### Build From Source
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
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:
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
```bash
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:
2020-04-19 23:12:46 +00:00
```bash
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).
2020-04-19 23:12:46 +00:00
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`:
2020-04-19 23:12:46 +00:00
```json
{
"experimental": true
}
```
2018-01-11 02:23:26 +00:00
2020-04-19 23:12:46 +00:00
After this, you must restart docker.
2018-01-11 02:23:26 +00:00
## Developers
2020-04-19 23:12:46 +00:00
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](https://github.com/OpenDroneMap/documents/blob/master/CONDUCT.md), the [contributing guidelines](https://github.com/OpenDroneMap/documents/blob/master/CONTRIBUTING.md) and [how decisions are made](https://github.com/OpenDroneMap/documents/blob/master/GOVERNANCE.md#how-decisions-are-made).
2018-01-11 02:23:26 +00:00
2020-01-21 20:10:31 +00:00
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:
```bash
$ 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:
```bash
(odmdev) [user:/code] master+* ± bash configure.sh reinstall
```
2020-01-21 20:10:31 +00:00
You can now make changes to the ODM source. When you are ready to test the changes you can simply invoke:
```bash
(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
2018-01-11 02:23:26 +00:00
1. Try to keep commits clean and simple
2. Submit a pull request with detailed changes and test results
2020-04-19 23:12:46 +00:00
3. Have fun!