Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

🖋️ Signature Analysis

A deep learning-based Signature Verification System using a Siamese Neural Network to determine whether two signature images belong to the same person or represent a forged/different signature.

📖 Overview

The system processes signature images through a preprocessing pipeline, generates meaningful feature representations using a CNN-based embedding network, and compares the resulting embeddings using Cosine Similarity.

Instead of directly classifying individual signatures, the Siamese architecture learns to measure the similarity between two signatures. This makes the approach suitable for signature verification and forgery detection.

🔄 Pipeline

flowchart TD
A[Signature Images] --> B[Image Preprocessing]
B --> C[Signature Pair Generation]
C --> D[CNN Feature Extraction]
D --> E[128-Dimensional Embeddings]
E --> F[Cosine Similarity]
F --> G[Sigmoid Classification]
G --> H[Genuine / Forged]
Loading

🧩 Key Components

1. Image Preprocessing

  • Grayscale conversion
  • Image resizing
  • Otsu thresholding
  • Pixel normalization
  • Channel dimension preparation

2. Pair Generation

Pair Type Label
Genuine–Genuine 1
Genuine–Forged 0

3. CNN Embedding Network

  • Multiple convolutional layers
  • Max pooling
  • Batch normalization
  • Global average pooling
  • Dense layers
  • Dropout regularization
  • 128-dimensional signature embeddings

4. Siamese Architecture

  • Two inputs processed through the same embedding network
  • Shared weights between both branches
  • Cosine similarity used to compare signature embeddings
  • Sigmoid output for binary verification

🏋️ Training

  • Optimizer: Adam
  • Loss: Binary Cross-Entropy
  • Metrics: Accuracy, AUC

🛠️ Technologies

Category Tools
Language Python
Deep Learning TensorFlow / Keras
Numerical Computing NumPy
Image Processing OpenCV
Architecture CNN, Siamese Neural Networks
Similarity Metric Cosine Similarity

🎯 Goal

The main goal of this project is to build an automated system capable of learning the visual characteristics of handwritten signatures and determining whether two signatures are sufficiently similar to be considered a genuine match.

📁 Project Structure

Signature-Analysis/
│
├── preprocessing.py
├── pairing.py
├── model.py
├── inference.py
├── main.py
└── README.md

This project is developed for educational and research purposes and focuses on deep-learning-based signature verification.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages