CoolFace
Apppublic

yaxit24/Image-Forgery

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
App README

๐Ÿ” Image Forgery Detection โ€” Milestone 2

AI-powered forensic image analysis system combining deep learning (MobileNetV2) with classical ML (Random Forest) for forgery detection, localization, and structured reporting.

Features

  • โ€”Dual-Model Classification: MobileNetV2 CNN + Random Forest ensemble
  • โ€”Tampering Localization: Fused heatmap (ELA, PRNU residual, blockiness, copy-move) with Otsu thresholding
  • โ€”Structured Reports: AI-generated forensic reports via Groq API (Llama 3.1)
  • โ€”Export: PDF and Markdown report downloads
  • โ€”Analysis History: Session-based tracking of analyzed images

Detectors

MethodWhat it catches
ELA (Error Level Analysis)JPEG recompression inconsistencies
PRNU ResidualSensor noise pattern anomalies
Blockiness MapBlock artifact grid inconsistencies
ORB Copy-MoveDuplicated regions via keypoint matching

Setup

bash
pip install -r requirements.txt
python train_cnn.py --data_dir data/train
streamlit run app/streamlit_app.py

Environment Variables

  • โ€”GROQ_API_KEY: (Optional) Groq API key for AI-generated reports. Falls back to template-based reports if not set.