Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Visual Anomaly Detection System

πŸ“Œ Overview

This project presents an AI-based anomaly detection system for identifying defects in images without requiring labeled defect data. The system uses deep learning techniques to learn normal patterns and detect deviations.

πŸš€ Features

  • Detects defects without labeled datasets
  • Generates anomaly heatmaps
  • Provides anomaly score
  • Real-time image analysis
  • Simple UI using Streamlit

🧠 Model Used

  • Pre-trained CNN (Feature Extraction)
  • PaDiM (Patch Distribution Modeling) for anomaly detection

βš™οΈ Tech Stack

  • Python
  • PyTorch
  • OpenCV
  • Anomalib
  • Streamlit

πŸ”„ How It Works

  1. User uploads an image
  2. Image is preprocessed
  3. CNN extracts features
  4. PaDiM models normal feature distribution
  5. System computes anomaly score
  6. Heatmap highlights defective regions

πŸ“Έ Output Example

▢️ Run the Project

bash pip install -r requirements.txt streamlit run app.py

πŸ“‚ Project Structure

project β”œβ”€β”€ app.py β”œβ”€β”€ model β”œβ”€β”€ utils β”œβ”€β”€ images β”œβ”€β”€ requirements.txt └── README.md

About

AI-based anomaly detection system for industrial defect detection using CNN feature extraction and PaDiM algorithm.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors