7

I have a couple of standard ways of detecting a modified image such as

  1. Luminance gradient
  2. Copy move detection
  3. Metadata Extraction
  4. Histogram analysis
  5. ELA(Error level analysis)
  6. Quantization matrix analysis
  7. Thumbnail analysis

are there any other standard ways of detecting a modified image?

Tried out

  • Finding the EXIF of the image to check the created and modified date and check for modification. I also had some rules for EXIF camera make and make note validation along with checking for the software used such as photoshop, Shotwell, etc.
  • Was able to segment the image and use SLIC(simple linear iterative clustering) to find out the similar cluster regions in an image
  • Find the largest contour with less pixel inconsistency with luminance gradient to mark that as a potential modified region
  • Largest contour with ELA as a potential modified region
  • Check for inconsistencies in histogram graph and mark it as a potential editted image.

Here are my questions

  • Are there any standard logics to verify the image with metadata such as using the created and modified dates, the camera make or maker note, etc. As these details are not consistent for any given image.
  • Finding out the least pixel inconsistency contour in the Luminance gradient would always give me an image that is modified?
  • If the histogram graph has a regular interval fluctuation could it be considered a modified image?
  • How could I use Quantization matrices to find out image anomalies
  • what is the best way to compare the thumbnail image to the original image to check for inconsistencies?
14
  • 1
    please read How to Ask
    – Piglet
    Commented Nov 18, 2019 at 12:50
  • @Piglet I think those are all related to a single concept and i wanted the solution as a whole linking all the various answers so had to put them as subquestions
    – Spark
    Commented Nov 18, 2019 at 12:53
  • 3
    You should really think about splitting those questions into separate ones. There may even be people able to answer one of your subquestions that are afraid to answer at all because they can't answer all. It also would be way more focussed and understandable in general. You can link the your subquestions here later on if you want it compiled.
    – T A
    Commented Nov 20, 2019 at 8:59
  • I would like to see if someone could at least answer some subquestion so that I can reward them the bounty, and I will later split them and ask them as separate questions.
    – Spark
    Commented Nov 21, 2019 at 6:39
  • @SundeepPidugu It's not clear what exactly is the algorithm supposed to do. To check if two images are the same? Or to test if two images scaled differently and compressed differently and perhaps color edited are the same? If it's just the same image why not compare binary? If these are slightly modified images then we need to see examples of what you consider to be the same images. In other words you should supply an example input and expected output.
    – iliar
    Commented Nov 23, 2019 at 13:12

1 Answer 1

5
+50

The answer to this question needs more detailed so, I will give some references to the subject itself and I will share with you the code of every part of your question :

You need to use exif to verify the image with metadata

For Anomaly Detection in Images see here

To compare the thumbnail image to the original image read this. where it showed you how to compare two images using Python.

References :

2
  • It can not be a direct answer. I just share the idea and then answer your questions. Commented Nov 26, 2019 at 10:13
  • 2
    Understood, Going through the references that you mentioned (i went through some of them earlier).
    – Spark
    Commented Nov 26, 2019 at 10:17

Not the answer you're looking for? Browse other questions tagged or ask your own question.