GithubHelp home page GithubHelp logo

agusgun / fakeimagedetector Goto Github PK

View Code? Open in Web Editor NEW
180.0 5.0 71.0 21.52 MB

Image Tampering Detection using ELA and CNN

License: MIT License

Jupyter Notebook 100.00%
fake-image-detection image-tampering-detection image-classification error-level-analysis convolutional-neural-networks deep-learning

fakeimagedetector's People

Contributors

agusgun avatar holylovenia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fakeimagedetector's Issues

dataset

untuk dataset .csv parameter yang diambil apa saja ?

Execution

Hello,

What is the final of your program, because you don't share the results of your tests?

Thank you

How to get the datasets?

hello agusgun, thank you for releasing the code, I try to download the datasets you used in the method from this link http://forensics.idealtest.org/ but there is no dataset at all...Could you please tell me how to get the datasets? Thank you very much~

using the dataset

I downloaded this dataset https://www.kaggle.com/sophatvathana/casia-dataset
but it has no any description, and some strange folder tree

├───CASIA1
│ ├───Au
│ ├───ela
│ └───Sp
├───CASIA2
│ ├───Au
│ └───Tp
└───__MACOSX
==├───CASIA1
==│ ├───Au
==│ └───Sp
==└───CASIA2
====├───Au
====└───Tp

which one should i use for train, which for test? which one is original pic which one is modified?
also i know the csv format

file_name,1 or 0 (fake or real image)
example for real image:
'datasets/train/real/Au_ani_00001.jpg',0

but i have no idea which folder should i use for source...

I appreciate for your great work, and I want repeat it by myself :- )

=========================================
so. i made this

I upload zip to google drive
unzip it to '/content/gdrive/My Drive/casia_dataset/
in google colab i generated csv by following code

is it right?

import os
path_orig = '/content/gdrive/My Drive/casia_dataset/CASIA2/Au/'
path_modif = '/content/gdrive/My Drive/casia_dataset/CASIA2/Tp/'

folder_orig = os.listdir()
folder_modif = os.listdir()

strings = []

for file in os.listdir(path_orig):
  try:
    if file.endswith('jpg'):
      if int(os.stat(path_orig + file).st_size) > 10000:
        line =  path_orig + file  + ',1\n'
        strings.append(line)
  except:
    print(path_orig+file)

for file in os.listdir(path_modif):
    try:
      if file.endswith('jpg'):
         if int(os.stat(path_modif + file).st_size) > 10000:
            line =  path_modif + file + ',0\n'
            strings.append(line)
    except:
      print(path_modif+file)

for line in strings:
      with open('/content/gdrive/My Drive/casia_dataset/dataset.csv', 'a') as f:
         f.write(line)

dataset

can you share the dataset ?

Motivation of using CNN

Hi @agusgun Thanks for sharing your work. Would you mind helping me with some of my queries?

After going through the work, I learned that the CNN learns to predict a categorical ELA image of the input image. Am I correct?
If so, since we have already know how to convert an input image to an ELA image using the function convert_to_ela_image(), i. e., we can calculate the 'ground truth' directly, may I know the idea of having a CNN model to do the conversion? Thanks

Error while converting images into ELA images

Hello, I have a small doubt actually when I am trying to convert image into ELA i.e
"convert_to_ela_image('datasets/train/real/Au_ani_00001.jpg', 90)" I am getting an error that permission is denied. Can you please help where I am going wrong.

To be more specific about my error I am pasting my error below,

***** PermissionError: [Errno 13] Permission denied: 'C:\Users\saraiya.resaved.jpg' *****

Any help will be highly appreciated thanks in advance.

pre-trained model

Hi!
Thank you for your works. Could you provide the pre-trained model? Thanks!

DataSet Issue

hello agusgun, thank you for releasing the code, I try to download the datasets you used in the method. But there is no link to the dataset. Please tell me how can I get that dataset.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.