An end-to-end automated quality inspection system using YOLOv8, Python, and Raspberry Pi, capable of identifying defective industrial components in real-time and rejecting them automatically with a servo-controlled mechanism.
(Defected Product (Gear) detection and automatic ejection demonstration)
- π Real-time object detection and defect classification using YOLOv8
- π· Live video feed processing from a USB camera
- π€ Automated rejection system using a servo motor
- βοΈ Conveyor control using 12V DC motor and ultrasonic sensor
- π§ Edge device deployment on Raspberry Pi 4
- π‘ Cost-effective solution for industrial automation
-
Object Detection
A USB camera captures a live feed as objects move on a conveyor belt. -
YOLOv8 Analysis
Each frame is processed using YOLOv8 to classify the object asGOODorDEFECTIVE. -
Automation Logic
- If
GOOD: The object continues on the conveyor. - If
DEFECTIVE: A servo motor pushes it off the belt.
- If
-
Ultrasonic Sensor
Detects the presence of an object to trigger image capture and model inference.
| Component | Description |
|---|---|
| Raspberry Pi 4 | Main controller |
| USB Camera | Live feed acquisition |
| 12V DC Motor | Conveyor drive |
| Ultrasonic Sensor | Object detection trigger |
| Servo Motor | Defective object rejection |
| L298N Motor Driver | Controls DC and servo motors |
| Conveyor Belt | Transports objects |
- Python 3.9+
- YOLOv8 (Ultralytics)
- OpenCV
- GPIO Zero / RPi.GPIO
- Linux (Raspberry Pi OS)
