Skip to content

About

CrimeScan AI is an intelligent forensic platform for enhancing low-quality CCTV images and performing face recognition using RetinaFace, ArcFace, and AI-based enhancement pipelines.

Topics

Resources

Code of conduct

Stars

1 star

Watchers

0 watching

Forks

Latest commit

ย 

History

6 Commits

Folders and files

Repository files navigation

CrimeScan AI

AIโ€‘Powered Criminal Face Detection & Recognition System


๐ŸŒ Project Overview

CrimeScan AI is an intelligent forensic investigation system designed to automatically detect, enhance, and recognize faces from CCTV footage, live webcam feeds, and uploaded images.

The system addresses realโ€‘world surveillance challenges such as:

  • Low resolution footage
  • Motion blur
  • Poor lighting conditions
  • Noise and compression artifacts
  • Masked or occluded faces
  • Pose variations

CrimeScan improves image quality using an intelligent enhancement pipeline before performing recognition and matching against a criminal database.

A desktop application enables investigators to perform recognition, enroll suspects, analyze results, and manage records efficiently.

The system also learns from previous results to continuously improve performance.


๐ŸŽฏ Project Objectives

  • Detect and recognize faces from images and video feeds.
  • Automatically assess image quality before recognition.
  • Enhance lowโ€‘quality images using AIโ€‘based enhancement modules.
  • Preserve forensic identity using enhancement validation.
  • Maintain accurate criminal identity database.
  • Support realโ€‘time and offline recognition workflows.
  • Continuously improve enhancement policies using adaptive learning.

๐Ÿง  Key System Features

Face Processing

  • Multiโ€‘face detection
  • Maskโ€‘aware recognition
  • Embeddingโ€‘based identity matching
  • Unknown person detection

Intelligent Enhancement

Automatic enhancement modules:

  • Deblurring
  • Denoising
  • Brightness & contrast correction
  • Superโ€‘resolution restoration
  • Pose normalization
  • Mask handling

Quality Assessment

Detects:

  • Blur
  • Noise
  • Resolution issues
  • Lighting problems
  • Pose deviations

GUI & Database

  • Criminal enrollment system
  • Database record management
  • Live webcam recognition
  • Investigation workflow support

โš™๏ธ System Architecture Flow

Input Image / CCTV / Webcam
            โ†“
Quality Assessment
            โ†“
Intelligence Engine
            โ†“
Enhancement Block
            โ†“
Forensic Guard Validation
            โ†“
Face Detection
            โ†“
Embedding Extraction
            โ†“
Face Vector Matching
            โ†“
Database Result
            โ†“
Adaptive Learning Update

๐Ÿ“‚ System Pipelines

1. CrimeScan Investigation Mode

Used for suspect identification.

Flow: Input โ†’ Quality Check โ†’ Enhancement โ†’ Guard Validation โ†’ Recognition โ†’ Database Match โ†’ Output


2. Live Webcam / CCTV Mode

Realโ€‘time recognition pipeline.

Flow: Camera โ†’ Frame Sampling โ†’ Detection โ†’ Embedding โ†’ Matching โ†’ Live Display

Enhancement is minimized for speed.


3. Enrollment Mode

Adds individuals to database.

Flow: Upload โ†’ Face Detection โ†’ Preprocessing โ†’ Embedding Extraction โ†’ Database Storage

Only highโ€‘quality images accepted.


4. Image Improver Mode

Enhancement only.

Flow: Input โ†’ AutoEnhancer โ†’ Save Enhanced Image

No recognition performed.


๐Ÿงฉ Core Modules

AutoEnhancer System

Responsible for improving image quality.

Components: - Quality Assessment - Intelligence Engine - Enhancement Block - Forensic Guard - Adaptive Learner

Face Recognition Engine

Responsible for identity matching.

Components: - Face Detection - Mask Handling - Embedding Extraction - Vector Matching

Database System

Stores: - Criminal records - Embeddings - Recognition logs


๐Ÿค– Models Used

Face Detection & Recognition

  • RetinaFace
  • ArcFace

Enhancement Models

  • GFPGAN -- Face restoration & superโ€‘resolution
  • HiDiff -- Deblurring
  • NLM -- Denoising
  • CLAHE -- Brightness correction
  • FAN -- Pose checking

Quality Assessment

  • CLIPโ€‘IQA
  • Pose analysis algorithms

Matching Algorithm

  • Cosine similarity

๐Ÿš€ Installation & Setup

Clone Repository

git clone https://github.com/Joelthomask/CrimeScan-AI.git
cd CrimeScan-AI

Create Environment

python -m venv venv
venv\Scripts\activate

Install Dependencies

pip install -r requirements.txt

๐Ÿ“ฆ External Model Downloads

Due to size limitations, some models are hosted externally.

HIโ€‘Diff Experiments

Place inside:

auto_enhancer/enhancement/deblurring/HI_Diff/experiments/

Download from GDrive.


GFPGAN Weights

Place inside:

auto_enhancer/enhancement/resolution/GFPGAN/gfpgan/weights/

Download from GDrive.


RetinaFace Weights

Place inside:

face_recognition/detection/retinaface/weights/

Download from GDrive.


InsightFace Buffalo_L Models

Place inside:

face_recognition/embedding/InsightFace/models/buffalo_l/

Download from GDrive.



๐Ÿ–ฅ Desktop Application Build & Installer

CrimeScan AI is also packaged as a standalone Windows desktop application, allowing investigators to run the system without manually setting up Python environments.


๐Ÿ“ฆ Prebuilt Installer (Recommended for End Users)

A ready-to-use installer is available for quick setup.

The installer automatically installs the CrimeScan desktop application with all required runtime components.

Download Installer.

After installation:

  • Launch CrimeScan from the desktop or start menu.
  • The dependencies and libraries should be Installed while running the setup.

๐Ÿš€ launcher.py

Located in the project root:

Purpose:

  • Serves as the runtime launcher for the packaged application.
  • Ensures correct environment initialization.
  • Handles safe startup of the CrimeScan pipeline.
  • Used in packaged builds to reliably start the application.

The launcher acts as a stable entry point when running the packaged executable.


โš™๏ธ Inno Setup Installer Script

script.iss

The project includes an installer configuration script:

Purpose:

  • Used with Inno Setup to create the Windows installer.
  • Packages executable, assets, and runtime files.
  • Creates shortcuts and installation directories.
  • Enables distribution of CrimeScan as a professional desktop application.

Developers can modify this script to generate updated installers.


๐Ÿ“Œ Recommended Usage

For developers:


โœ… Current System Status

โœ” Recognition pipeline operational
โœ” Enhancement modules integrated
โœ” GUI fully functional
โœ” Database enrollment working
โœ” Realโ€‘time recognition supported


๐Ÿ”ฎ Future Improvements

  • Distributed recognition support
  • Cloud database synchronization
  • Edge device deployment
  • Automatic model downloader
  • Performance optimization

๐Ÿ“š Project Documentation & Knowledge Support

Comprehensive project resources are available for learners, researchers, and developers who wish to understand or build upon the CrimeScan AI system.

Available materials include:

  • Complete project PPT presentation
  • System architecture explanation
  • Pipeline flow documentation
  • Module-wise implementation details
  • Folder structure explanation
  • Deployment and packaging workflow
  • Enhancement and recognition methodology
  • Technical defense and presentation guidance

These materials provide deeper understanding of system design, implementation decisions, and investigation workflows.

For access to project documentation or technical guidance regarding CrimeScan AI, please contact the author.

๐Ÿ“ง Contact: Joel Thomas



๐Ÿ‘ฅ Project Team

SCMS School of Engineering and Technology
Department of Computer Science & Engineering

Team Members: - Joel Thomas - Jinto Raj - Cukoo Biji - Gokul K Reghu


๐Ÿ‘ค Author & Repository

๐Ÿ‘จโ€๐Ÿ’ป Joel Thomas



๐Ÿงพ License & Acknowledgements

  • Licensed under the MIT License.
  • Based on the open-source RetinaFace project.
  • Datasets used: RMFD, MAFA, CMFD, Custom Surveillance Dataset.
  • All the images and datasets and models used here belongs to the respective owners.
  • All the logos and Vedios belongs to the respective owners.
  • MIT ยฉ Joel Thomas

Code of Conduct

You can find our Code of Conduct here.


โญ Contribute

Pull requests and issues are welcome.
You can contribute by improving dataset balance scripts, fine-tuning on other backbones, or optimizing for embedded systems.


โ€œBuilt with purpose โ€” precision and performance for real-world recognition.โ€

About

CrimeScan AI is an intelligent forensic platform for enhancing low-quality CCTV images and performing face recognition using RetinaFace, ArcFace, and AI-based enhancement pipelines.

Topics

Resources

Code of conduct

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages