File size: 737 Bytes
5fe5c7e
 
51087b5
5fe5c7e
 
51087b5
5fe5c7e
51087b5
5fe5c7e
 
51087b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
title: Smart Sorting
emoji: 🗑️
colorFrom: green
colorTo: blue
sdk: docker
pinned: false
license: mit
---

# Smart Waste Classifier API

AI-powered waste classification using MobileNetV2 (97.83% accuracy).

## API Endpoints

- `GET /` - Status check
- `POST /predict` - Classify an image

### Example Request

```json
POST /predict
{
    "image_base64": "<base64-encoded-image>"
}
```

### Response

```json
{
    "success": true,
    "prediction": {
        "class": "plastic",
        "confidence": 95.5,
        "all_probabilities": {
            "glass": 1.2,
            "metal": 0.5,
            "non-recyclable": 0.3,
            "organic": 0.8,
            "paper": 1.7,
            "plastic": 95.5
        }
    }
}
```