Loknaath/Image_forgery_detection
๐ผ๏ธ 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:
- ๐ง Convert it to its ELA representation
- ๐ง Analyze it using a trained EfficientNetB0 model
- ๐ข Predict Authentic or ๐ด Forged with confidence
- ๐ฅ๏ธ 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
