SPINLab / tree-detection

Tree detection project for Rijkswaterstaat, carried out by the Spinlab (Vrije Universiteit Amsterdam)

Home Page:https://spinlab.vu.nl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tree Detection

This repository contains the methodology for detecting the trees in a project carried out for Rijkswaterstaat by the VU.

Set up

conda env create -f environment.yml --name <name>

activate <name>

How to use?

run: python3 main.py

The steps for detecting trees are the following

  1. Read points from the EPT
    1. PDAL filters for
    2. filter based on return number, classification and ground
    3. read points into class
  2. HDBSCAN on XY
    1. assing cluster id
  3. polygonize clusters with convex hull
  4. get points in polygon (for better control over which points to filter in the next clustering step)
  5. kmeans cluster with low number of iterations
    1. assing cluster id
  6. polygonize clusters based on unique combination of the two cluster id's

The code depends on a input dataset developed by Geodan BV. The input dataset is an entwined point tile (EPT) and is replacable. If you wish to use the Geodan EPT, please contact the owner of the repository.

About

Tree detection project for Rijkswaterstaat, carried out by the Spinlab (Vrije Universiteit Amsterdam)

https://spinlab.vu.nl/

License:MIT License


Languages

Language:Python 93.5%Language:TSQL 3.7%Language:PLpgSQL 2.8%