Update README.md
Browse files
README.md
CHANGED
|
@@ -1 +1,41 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 🌱 Plant Seedlings Classification — AI for Smarter Agriculture
|
| 2 |
+
|
| 3 |
+
## 🧩 Overview
|
| 4 |
+
Agriculture remains one of the most vital yet labor-intensive industries.
|
| 5 |
+
Farmers and agronomists often spend countless hours identifying seedlings, weeds, and crop health manually.
|
| 6 |
+
This model leverages **Deep Learning and Computer Vision** to automatically recognize plant species from seedling images —
|
| 7 |
+
helping accelerate early-stage crop monitoring and enabling precision agriculture.
|
| 8 |
+
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
## 🤖 Model Details
|
| 12 |
+
- **Model Type:** CNN-based Image Classifier
|
| 13 |
+
- **Framework:** TensorFlow / Keras
|
| 14 |
+
- **Dataset:** Plant Seedlings Dataset (12 plant categories)
|
| 15 |
+
- **Input:** RGB image of a seedling
|
| 16 |
+
- **Output:** Predicted plant species label
|
| 17 |
+
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
## 🌾 Why It Matters
|
| 21 |
+
✅ Reduces manual effort in plant identification
|
| 22 |
+
✅ Boosts accuracy and consistency in seedling detection
|
| 23 |
+
✅ Supports sustainable, data-driven agriculture
|
| 24 |
+
✅ Enables automation in large-scale farming and greenhouse monitoring
|
| 25 |
+
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
## 🚀 Example Usage
|
| 29 |
+
```python
|
| 30 |
+
from tensorflow.keras.models import load_model
|
| 31 |
+
from tensorflow.keras.preprocessing import image
|
| 32 |
+
import numpy as np
|
| 33 |
+
|
| 34 |
+
model = load_model("plant_seedlings_model.h5")
|
| 35 |
+
|
| 36 |
+
img = image.load_img("seedling.jpg", target_size=(128, 128))
|
| 37 |
+
x = image.img_to_array(img)
|
| 38 |
+
x = np.expand_dims(x, axis=0) / 255.0
|
| 39 |
+
|
| 40 |
+
pred = np.argmax(model.predict(x), axis=1)
|
| 41 |
+
print("Predicted plant category:", pred)
|