Giter VIP home page Giter VIP logo

tree-detection's Introduction

Tree detection

Command line application (CLI) to delineate single trees from LiDAR data, DOM and DTM. Realized as a master thesis for the canton of Lucerne to obtain the UNIGIS Master of Science (MSc) degree at the Paris-Lodron University of Salzburg.

Final workflow The workflow to detect trees is separated in a main process and several sub processes. The main process is calculating the neighborhood for all tiles and setup the sub processes. In case of multiple processes, the tiles will be processed in parallel. After finishing of all sub processes, the main process is exporting the trees to a file geo database and clip it to the boundary of the canton.

In the sub processes the LAS-, DOM- and DTM-files are prepared and buffered before the watershed segmentation.

Workflow for watershed delineation The watershed segmentation is executed on the canopy height model extracted from LiDAR and DOM data. The delineation will be executed for forest and open field areas with individual settings (See settings/settings.json).

Precondition and data

The algorithm needs access to the tiled LiDAR point cloud and the tiled DOM and DTM. The data should be tiled with equal raster schema (e.g. Kartenblatt 1/56). The raster tiles should be accessible in a polygon feature class to extract all tiles and the cartesian 8-neighborhood. To clip all trees to the boundary of the area of interest, a polygon to this data is additionally required. Setup the path to all the data in the settings file. The access to all required data will be checked before starting the process.

There's no need for a big amount of free hard disk space. The trees will be exported to CSV files and summarized in a point feature class. Overall free disk space of 2.5 MB per square kilometer is needed.

Depending of the amount of parallel processes and hardware characteristics, the algorithm will have a runtime between 1 and 2 minutes per square kilometer.

Results:

The framework was successfully used to extract single trees for the area of the canton of Lucerne. 11.5 million trees could be extracted with an overall runtime of 37 hours by processing the entire area with 6 parallel processes on a normal office hardware. Final trees rendered photo realistic

Installing

The follwing steps describes the installing process in the IT environment of the canton of Lucerne.

  1. Setup a new conda environment and install all required packages according the setup.py file.
  2. Start the Python 3 conda environment with "C:\Program Files\ArcGIS\Pro\bin\Python\scripts\proenv.bat"
  3. Insert pip install git+https://app.geo.lu.ch/gitea/GEO/tree-detection.git to install the newest release
  4. Use credentials for Gitea

Running

  1. Configure all parameters in the settings file settings/settings.json
  2. Configure the path to the conda environment with all installed libraries in run.bat
  3. Start tree detection by running the script run.bat

Uninstalling

If you want to uninstall tree-detection (e.g. in case of an update), use the following steps:

  1. Check or set in ArcGIS Pro the environment to the tree-detection environment
  2. Start the Python 3 conda environment with "C:\Program Files\ArcGIS\Pro\bin\Python\scripts\proenv.bat"
  3. Insert pip uninstall tree-detection to uninstall the newest release
  4. Answer with y to complete the uninstall process

Releases

Date Version Notes
31.03.2020 1.0.0 Initial release

tree-detection's People

Contributors

adrian-kuhn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.