|
|
--- |
|
|
title: Plant Analysis Demo |
|
|
emoji: 🌿 |
|
|
colorFrom: green |
|
|
colorTo: blue |
|
|
sdk: gradio |
|
|
sdk_version: 5.48.0 |
|
|
app_file: app.py |
|
|
pinned: false |
|
|
--- |
|
|
|
|
|
# 🌿 Automated Plant Analysis Pipeline |
|
|
|
|
|
Analyze plant images with automated segmentation, feature extraction, and morphological analysis. |
|
|
|
|
|
## Features |
|
|
- **Multi-plant detection**: Automatically detects and analyzes multiple plants |
|
|
- **Segmentation**: BRIA RMBG-2.0 model for accurate plant segmentation |
|
|
- **Vegetation indices**: NDVI, GNDVI, SAVI with statistics |
|
|
- **Texture analysis**: LBP, HOG, Lacunarity on green band |
|
|
- **Morphology**: Height calculation for each plant, size visualization |
|
|
|
|
|
## Storage Optimization |
|
|
This app uses `/tmp` for model caching to avoid persistent storage limits on Hugging Face Spaces. |
|
|
|
|
|
## Usage |
|
|
1. Upload a plant image (TIFF, PNG, or JPG) |
|
|
2. Or select a preset image (Sorghum, Corn, Cotton) |
|
|
3. Click "Run Pipeline" |
|
|
4. Watch results appear progressively! |
|
|
|