Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PCB Defect Detection using YOLOv5

Overview

This project implements an automated Printed Circuit Board (PCB) defect detection system using the YOLOv5 object detection framework. The model is trained to identify multiple PCB manufacturing defects, reducing the need for manual inspection and improving quality assurance.


Features

  • YOLOv5-based object detection
  • Multi-class PCB defect classification
  • Automatic annotation conversion (XML → YOLO format)
  • Dataset preprocessing
  • Training and inference notebooks
  • Visualization of prediction results

Technologies Used

  • Python
  • YOLOv5
  • PyTorch
  • OpenCV
  • NumPy
  • Jupyter Notebook

Dataset

The project uses annotated PCB images containing common manufacturing defects.

Examples include:

  • Missing Hole
  • Mouse Bite
  • Open Circuit
  • Short
  • Spur
  • Spurious Copper

Repository Structure

PCB-Defect-Detection/
│
├── notebooks/
├── PCB_DATASET/
├── XmlToTxt-master/
├── README.md
├── requirements.txt
└── .gitignore

Installation

git clone https://github.com/ChatushRaj/PCB-Defect-Detection.git

cd PCB-Defect-Detection

pip install -r requirements.txt

Workflow

  1. Dataset Preparation
  2. Annotation Conversion
  3. YOLO Dataset Generation
  4. Model Training
  5. Prediction
  6. Evaluation

Future Improvements

  • YOLOv8 Migration
  • Real-time Camera Detection
  • Model Deployment using Flask/FastAPI
  • Edge Device Optimization

Author

Chatush Raj

B.Tech Computer Science (AI & ML)

GitHub: https://github.com/ChatushRaj

About

YOLOv5-based PCB defect detection system for automated inspection of printed circuit boards using deep learning. Includes dataset preprocessing, XML-to-YOLO annotation conversion, model training, and inference notebooks for multi-class defect detection.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages