Skip to content

Detects the authenticity of an image using Error Level Analysis and Convolutional Neural Networks.

License

Notifications You must be signed in to change notification settings

0xsp/image-forgery-detection

Repository files navigation

Image Forgery Detection using CNN

Detects the authenticity of an image using Error Level Analysis and Convolutional Neural Networks.

Introduction

Error Level Analysis

Error Level Analysis is an image feature extraction technique. JPEG is a lossy compression format and hence the pixels in the images stored in that format tend to be downsampled from which they are captured initially. When an authentic image is loaded into an image editing software, tampered and then stored again in JPG format, the pixels where the image has been tampered will have distinct compression artifacts relative to the adjacent pixels. These compression artifacts can be analysed to detect the presence of image tampering.

Convolutional Neural Network

A Convolutional Neural Network(ConvNet/CNN) is a Deep Learning algorithm which can take in an input image, assign importance(learnable weights and biases) to various aspects/objects in the image and be able to differentiate one from the other.

Setup and Usage

  1. Upgrade pip.

  2. Install the following py modules

    • keras
    • numpy
    • pillow
    • pyqt5
  3. Clone this repo to your local machine.

  4. Run the ui.py file.

  5. Browse an image from your local machine and test it.

Dataset

Casia dataset - Kaggle

  • Total Images : 11129
  • Authentic images : 8144
  • Forged images : 2985

Contributors

License

MIT

Reference

FotoForensics

About

Detects the authenticity of an image using Error Level Analysis and Convolutional Neural Networks.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •