Skip to content

Material Surface Analyzer : An industrial analysis tool for detecting and classifying defects in material surfaces using machine learning.

Notifications You must be signed in to change notification settings

MamoonaRamzan/MatScan

Repository files navigation

MatScan

An industrial analysis tool for detecting and classifying defects in material surfaces using machine learning.

📝 Overview

MatScan: Material Surface Analyzer System is a desktop application that helps manufacturing and quality control professionals identify and classify defects in material surfaces. Using computer vision and deep learning, the system can detect six common types of industrial material defects with high accuracy.

Dataset

The model was trained on the NEU Surface Defect Database, which contains six types of typical surface defects of hot-rolled steel strips. Each class contains 300 grayscale images (200×200 pixels).


Features

  • User-Friendly GUI – Clean, tabbed interface built for ease of use
  • Multi-Class Defect Detection – Supports classification of:
    • Crazing (fine network of surface cracks)
    • Inclusions (embedded foreign particles)
    • Patches (irregular surface areas)
    • Pitted Surfaces (small depressions or holes)
    • Rolled-in Scale (pressed scale particles)
    • Scratches (linear marks or grooves)
  • Real-Time Image Analysis – Fast and responsive defect prediction
  • Grad-CAM Heatmap Visualization – Understand what influenced the model’s decision
  • Confidence Scores – Displayed for primary and alternative predictions

💻 Usage

  • Run the application: python material_defect_analyzer.py
  1. The application will load the pre-trained model automatically. Else load the model manually.
  2. Click "Select Material Image" to choose an image file to analyze.
  3. Click "Analyze Defect" to process the image and see the classification results.
  4. View the detailed results in the "Analysis Results" tab, including:

-Primary defect type -Confidence score -Alternative possible defect types

  1. Switch to the "Defect Visualization" tab to see a heatmap highlighting areas that influenced the model's decision.

Preview

Screenshot 2025-04-26 134604 Screenshot 2025-04-26 134634 Screenshot 2025-04-26 134708

About

Material Surface Analyzer : An industrial analysis tool for detecting and classifying defects in material surfaces using machine learning.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published