CoolFace
Apppublic

Loknaath/Image_forgery_detection

sourceHugging Faceotherupdated 10mo agoView on Hugging Face
0likes
App README

๐Ÿ–ผ๏ธ Image Forgery Detection using ELA + CNN

Welcome to the Image Forgery Detection demo! This Space provides a real-time web application that uses Error Level Analysis (ELA) ๐Ÿ” and a Convolutional Neural Network (CNN) ๐Ÿค– to determine whether an image is Authentic or Forged.

Upload an image and the system will:

  1. 1.๐Ÿ”ง Convert it to its ELA representation
  2. 2.๐Ÿง  Analyze it using a trained EfficientNetB0 model
  3. 3.๐ŸŸข Predict Authentic or ๐Ÿ”ด Forged with confidence
  4. 4.๐Ÿ–ฅ๏ธ Display the ELA visualization

๐Ÿ”ฌ How It Works

1๏ธโƒฃ Error Level Analysis (ELA)

ELA highlights areas with inconsistent compression. Edited or manipulated regions often show brighter or uneven artifacts in the ELA output. โœจ

2๏ธโƒฃ CNN Classification

A deep-learning model (EfficientNetB0) trained on the CASIA 2.0 dataset evaluates the ELA-transformed image and performs binary classification:

  • โ€”โœ… Authentic
  • โ€”โŒ Forged

๐Ÿ“‚ Dataset

CASIA 2.0 Image Tampering Detection Dataset

Contains both authentic and forged images involving:

  • โ€”โœ‚๏ธ Splicing
  • โ€”๐Ÿ” Copy-move
  • โ€”๐Ÿงฝ Object removal
  • โ€”๐Ÿ–ผ๏ธ Image composition

Dataset was preprocessed using ELA and split into:

  • โ€”80% ๐Ÿ‹๏ธ Training
  • โ€”20% ๐Ÿงช Validation

๐Ÿ› ๏ธ Technologies Used

  • โ€”๐Ÿ Python
  • โ€”๐Ÿง  TensorFlow / Keras
  • โ€”โš™๏ธ EfficientNetB0
  • โ€”๐Ÿ–ผ๏ธ PIL (for image processing & ELA)
  • โ€”๐ŸŒ Gradio (UI)
  • โ€”โ˜๏ธ Hugging Face Spaces

๐Ÿ‘ฅ Project Members

  • โ€”๐Ÿ‘ค Loknaath P โ€“ Reg No: 212223240080
  • โ€”๐Ÿ‘ค Lokhnath J โ€“ Reg No: 212223240079

๐ŸŒ Application Areas

  • โ€”๐Ÿ•ต๏ธ Digital forensics
  • โ€”๐Ÿ“ฐ Fake media detection
  • โ€”๐Ÿ” Journalism & fact-checking
  • โ€”โš–๏ธ Legal investigation support
  • โ€”๐ŸŽ“ Academic integrity

๐ŸŽฏ Project Objective

Provide a simple, accessible online tool that helps detect digitally manipulated images using forensic analysis and deep learning.

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference