# shabaaz1729/imgsplicing architecture

> Architecture diagram of the GitHub repository shabaaz1729/imgsplicing, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-03-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shabaaz1729/imgsplicing
- Repository: https://github.com/shabaaz1729/imgsplicing

## Overview

##### Project Identification
- Purpose: The project “ImgSplicing” is focused on detecting image splicing using deep learning. It leverages feature extraction (HOG and GLCM Texture Features) to form a 23-value feature vector that is then classified using three different classifiers: Perceptron, Sigmoid Neuron, and Feed Forward Neural Network.
- Type: This is a machine learning / deep learning project primarily designed for image forensics.

##### Analyzing the File Structure
- The Code Directory contains Jupyter notebooks for each classifier:
- FeedForwardNetwork.ipynb (and its checkpoint file)
- Perceptron.ipynb
- Sigmoid Neuron.ipynb
- The Images Directory holds sample input images (both authentic and spliced).
- The top-level files include LICENSE and README.md.
- This layout suggests a research-oriented or experimental setup where different models are tried separately but work on a shared feature extraction process and dataset.

##### Insights from the README
- The README outlines the key steps:
- Feature Extraction (using HOG and GLCM to generate a feature vector)
- Classification (three different models are implemented)
- Dataset details (images drawn from a well-known DVMM dataset with authentic and spliced images)
- There is no explicit separation between “frontend” or “backend” as in a full-stack web application; instead, the focus is on data processing and model evaluation.

a. Data Input / Dataset:
- Source images (authentic and spliced) that are fed into the system.

b. Preprocessing and Feature Extraction:
- A module where raw images are processed.
- Within this module, further subdivide into:
- HOG Feature Extraction component.
- GLCM Texture Feature Extraction component.
- That their outputs merge to form the 23-value feature vector.

c. Classifiers (Modeling Components):
- Create three distinct blocks representing:
- Perceptron Classifier.
- Sigmoid Neuron Classifier.
- Feed Forward Neural Network.
- These blocks can be connected in a way that indicates either parallel execution (all models receive the same feature vector) or comparative evaluation if results are aggregated later.

d. Results / Evaluation:
- Although not explicitly detailed in the README, this is a typical end-point for such pipelines.

- If applicable, connect the classifiers to a shared “Results” module that aggregates evaluations.

##### Final Detailed Recommendations
- A title (“ImgSplicing System Architecture”) at the top.
- Component (Data Input, Feature Extraction, Classifier 1, Classifier 2, Classifier 3, and Evaluation) is separated and clearly defined.
- Optionally, add side notes that indicate where configuration or parameter tuning might occur (for example, hyperparameters in each classifier notebook).

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Title
    title["ImgSplicing System Architecture"]

    %% Data Input / Dataset
    DI["Raw Input Images (DVMM Dataset)"]:::dataset

    %% Feature Extraction Subgraph
    subgraph "Feature Extraction Module"
        HOG["HOG Extraction"]:::extraction
        GLCM["GLCM Extraction"]:::extraction
        Combined["Combined 23-Value Feature Vector"]:::extraction
        HOG -->|"merges"| Combined
        GLCM -->|"merges"| Combined
    end

    %% Classifiers
    PC["Perceptron Classifier"]:::classifier
    SN["Sigmoid Neuron Classifier"]:::classifier
    FF["Feed Forward Neural Network"]:::classifier

    %% Results / Evaluation
    EV["Results / Evaluation"]:::evaluation

    %% Diagram Flow
    title --> DI
    DI -->|"provides images"| Combined
    Combined -->|"features sent"| PC
    Combined -->|"features sent"| SN
    Combined -->|"features sent"| FF
    PC -->|"evaluation"| EV
    SN -->|"evaluation"| EV
    FF -->|"evaluation"| EV

    %% Click Events based on component mapping
    click DI "https://github.com/shabaaz1729/imgsplicing/tree/master/Images"
    click PC "https://github.com/shabaaz1729/imgsplicing/blob/master/Code/Perceptron.ipynb"
    click SN "https://github.com/shabaaz1729/imgsplicing/blob/master/Code/Sigmoid Neuron.ipynb"
    click FF "https://github.com/shabaaz1729/imgsplicing/blob/master/Code/FeedForwardNetwork.ipynb"

    %% Styles
    classDef dataset fill:#ffe6e6,stroke:#ff0000,stroke-width:2px;
    classDef extraction fill:#e6ffe6,stroke:#008000,stroke-width:2px;
    classDef classifier fill:#e6e6ff,stroke:#0000ff,stroke-width:2px;
    classDef evaluation fill:#ffffe6,stroke:#ffaa00,stroke-width:2px;
```
