Skip to main content
2 min readUpdated 19 Oct 202612 weeks

Manufacturing Defect Detection using Computer Vision

MediumBTech CSEBCAMCABSc IT+2 moreAI & Machine Learning
Share:
100% Free

Get Free Synopsis PDF

We will prepare a detailed synopsis for your college submission. Includes problem statement, objectives, DFD, ER diagram, and more.

This project implements an automated visual inspection system that detects surface defects such as scratches, dents, and cracks on manufactured parts using computer vision. A YOLO-based object detection model is trained on an industrial defect image dataset to localize and classify defect types in real time. The system is integrated into a Flask dashboard that simulates a production-line camera feed and flags defective items for removal.

Problem Statement

Manual quality inspection on production lines is labor-intensive, inconsistent, and struggles to keep pace with high-speed manufacturing. An automated vision-based inspection system can detect defects consistently and in real time, reducing waste and improving product quality.

Where this is used in real factories

Quality checks on a production line are still done by eye in many small plants. A person looks at hundreds of parts an hour, and tiredness means scratches and cracks slip through. Camera-based inspection is already common in electronics, steel, textiles and automotive parts, so this project is close to real industry work, which examiners like.

You don't need a factory to build it. Public defect datasets give you labelled images, and a looping video or a folder of test images can stand in for the conveyor camera.

Datasets you can start with

  • MVTec AD: industrial images across 15 object and texture categories (bottles, screws, carpet, metal nut and more), with normal and defective samples. Good for showing many defect types.
  • NEU surface defect database: steel surface images in six defect classes such as scratches, patches and inclusions. Small and easy to train on a laptop or Colab.
  • Your own photos: 100-200 images of a simple object (bottle caps, PCB boards, tiles) labelled in a tool like LabelImg or Roboflow. Even a small custom set makes your project unique.

A realistic 12-week plan

  • Weeks 1-2: pick the dataset, convert labels to YOLO format, split train/validation/test.
  • Weeks 3-5: train a small YOLO model on Colab, then try a second model size and compare.
  • Weeks 6-7: measure precision, recall and mAP on the test set, and note which defect types fail most.
  • Weeks 8-10: build the Flask dashboard: video feed, bounding boxes, a defect log and a pass/fail counter.
  • Weeks 11-12: alert for defective items, testing, report and demo video.

What makes the viva go well

Bring a results table, not just a demo. Examiners usually ask why you chose YOLO over plain image classification (answer: you need the location of the defect, not only a yes/no), what mAP means, how you handled classes with very few images, and what happens with lighting changes. A slide showing a few false positives and why they happened shows real understanding.

Objectives

1

Collect and annotate an industrial defect image dataset

2

Train a YOLO-based object detection model for defect localization and classification

3

Optimize the model for real-time inference on a simulated production feed

4

Build a dashboard to visualize detected defects with bounding boxes

5

Implement an alert mechanism for flagged defective items

Modules

M1

Image Annotation Module

Labels defect regions and types in the training dataset using bounding box annotations.

M2

Defect Detection Module

Trains and runs a YOLO model to detect and classify scratches, dents, and cracks on parts.

M3

Real-Time Feed Simulation Module

Streams a simulated conveyor camera feed to the detection pipeline for continuous inference.

M4

Dashboard Module

Displays live detection results with bounding boxes and defect counts.

M5

Alert Module

Triggers notifications when a defect count exceeds a configurable threshold.

Expected Output

The system achieves real-time defect detection with bounding-box localization and a live dashboard summarizing defect rates. It demonstrates a practical industrial quality-control automation pipeline.

Future Scope

Future work includes deploying the model on edge devices near the production line and adding defect-severity scoring for automated sorting decisions.

Similar Project Ideas

Frequently Asked Questions

Use a recent version with good documentation and pretrained weights, and stick to a small model size so it trains on free Colab. What matters more is that you can explain the training process and your evaluation numbers.
Yes. Train on Google Colab's free GPU, then run inference on your laptop CPU for the demo. A small model on a recorded video is fast enough for a live demonstration.
Use augmentation (flips, brightness changes, small rotations), merge rare classes if it makes sense, and report per-class results honestly. Explaining this imbalance is a strong point in the viva.
Click the "Get Free Synopsis PDF" button on this page. Fill in your details and we will send a detailed synopsis to your WhatsApp within 24 hours at no cost.
Yes, this project includes a detailed problem statement, objectives, and module breakdown that you can use for your college submission. The synopsis PDF we provide is formatted for academic submission.
This project uses: NumPy, OpenCV, PyTorch, Flask, Python. Basic knowledge of these technologies is recommended before starting.