- Pycharm (community edition)
- Python 3.12
- QGis 3.40.4
- Open terminal in Pycharm. Make sure your (pip) environment is activated and that your are in the directory where your requirements.txt is located.
- Type following command in the terminal
pip install -r requirements.txt🚀 Ready to start 🚀
- Modify the hyperparameters in the .env file.
- drawRaster.py: makes raster of tiles for DL model, select buffer to be large enough to cover full orthomosaic.
- correctRaster.py: remove empty boxes (with no pixels).
- In QGIS: Make a copy of your tile file and select the tiles that have a dead tree within the tile (data of Thomas).
- extractTiles.py: crop the orthomosaic to the extent of every box.
- Label the images using labelme. Type following command in the terminal:
labelme or reference directly to your folder and add your pre-defined labels:
labelme ./Images/FC --labels labels.txt --nodata --validatelabel exact --config '{shift_auto_shape_color: -2}'or reference directly to your folder and add your pre-defined flags (for annotation or classification):
labelme ./Images/FC --flags flags.txt --nodata- Convert_json_to_polygons.py: make shape file with labels.
- Merge the alive trees and dead trees, dissolve boundaries. Make sure the dead trees are on top of the alive trees (shape_labels_merging.model3 script in QGIS).