PatBall1 / detectree2

Python package for automatic tree crown delineation based on the Detectron2 implementation of Mask R-CNN
https://patball1.github.io/detectree2/
MIT License
148 stars 35 forks source link

Functions needed for multiclass tiling #46

Closed 0scarJ1ang closed 1 year ago

0scarJ1ang commented 1 year ago

Add three function for multi-class tiling:

def record_data(crowns, out_dir, column='status'): """Function that will record a list of classes into a file that can be readed during training."""

def modify_crown_classes(crowns): """ functions to add a column to the crowns Geodataframe which record the liana conditions when already in class 0,1,2,3,4"""

def add_crown_classes(crowns): """ functions to add a column to the crowns Geodataframe which record the liana conditions when the conditions range from 0 to 100"""