File size: 930 Bytes
4975997
 
7ac2007
 
4975997
 
 
 
 
 
 
7ac2007
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
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!