Hazelnut42/Fruit_Detection
0
๐ Fruit Ninja: Multi-Class Fruit Detection
Detect 10 types of fruits using YOLOv8 deep learning model!
๐ฏ Demo
Upload an image containing fruits, and the model will detect and classify them automatically.
Supported Fruits:
- ๐ Apple
- ๐ฅ Avocado
- ๐ซ Blueberry
- ๐ซ Capsicum
- ๐ Cherry
- ๐ฅ Kiwi
- ๐ฅญ Mango
- ๐ Orange
- ๐ Rockmelon
- ๐ Strawberry
๐ Model Performance
Per-Class Performance (AP@0.5)
๐ง Model Details
- Architecture: YOLOv8n (Nano)
- Parameters: 3.0M
- Dataset: deepNIR (922 images, 10 classes)
- Training: 100 epochs, 27.8 minutes on Tesla T4
- Framework: Ultralytics YOLOv8
๐ Training Configuration
TRAINING_PARAMS = {
'epochs': 100,
'batch': 16,
'imgsz': 640,
'lr0': 0.01,
'optimizer': 'AdamW',
# Data Augmentation
'mosaic': 1.0,
'mixup': 0.1,
'hsv_h': 0.015,
'hsv_s': 0.7,
'hsv_v': 0.4,
'degrees': 10.0,
'translate': 0.1,
'scale': 0.5,
'fliplr': 0.5,
}๐ How to Use
- Upload an image containing fruits
- Adjust confidence threshold (optional)
- Click "Detect Fruits"
- View results with bounding boxes and labels
๐ Academic Context
This model was developed as part of a Computer Vision course homework assignment (HW3: Fruit Ninja). The goal was to train a deep learning model for multi-class fruit detection suitable for agricultural automation applications.
Real-world Applications:
- Automated fruit counting in orchards
- Quality control in packing facilities
- Yield estimation for harvest planning
- Robotic fruit picking systems
๐ References
- Ultralytics YOLOv8
- YOLOv8 Documentation
- deepNIR Dataset
๐ License
MIT License - Feel free to use for educational purposes!
Developed by: [Your Name] Course: Computer Vision Date: October 2025
