Forgot Password
Pentax Camera Forums Home
 

Reply
Show Printable Version 11 Likes Search this Thread
05-18-2021, 04:48 AM - 1 Like   #1
Site Supporter
Site Supporter




Join Date: Apr 2015
Posts: 3,520
Forgery Detection

Adam recently brought me to a Linux based program for forgery detection:
GitHub - andrewlevandoski/Image-Forgery-Detection

It worked only partly and then stopped.

So I asked a young and very talented person if he can help me with it.

He did and found a mistake with the source-code and rewrote the program:

Here it is and it works:


GitHub - MrcJkb/Image-Forgery-Detection

This was the test:

and the result was:


05-18-2021, 07:10 AM   #2
dlhawes
Guest




"Forgery" is the act of impersonating another in the production of a document, particularly by signing a name other than one's own. So I'm not sure exactly what this program is actually doing in this context.
05-18-2021, 07:53 AM - 1 Like   #3
Pentaxian
swanlefitte's Avatar

Join Date: May 2015
Location: Minneapolis
Photos: Gallery
Posts: 4,068
QuoteOriginally posted by dlhawes Quote
particularly by signing a name other than one's own.
This confused me. Did Samuel Clemens commit forgery by signing Mark Twain?

The program detects alterations. I think someone claiming to have a photo of a shark swimming in a pool when it was photoshopped in could be considered forgery couldn't it?
05-18-2021, 08:25 AM - 2 Likes   #4
Site Supporter
Site Supporter
jatrax's Avatar

Join Date: May 2010
Location: Washington Cascades
Photos: Gallery | Albums
Posts: 12,991
QuoteOriginally posted by dlhawes Quote
"Forgery" is the act of impersonating another in the production of a document,
Not everyone on this forum has English as their first language. I suspect the use of 'forgery' was meant in a more generic sense. Alteration, fake, modified etc. The program is clearly looking at an image and trying to see if it has been digitally altered. "Photoshopped" as it is sometimes called.

05-18-2021, 08:47 AM - 1 Like   #5
Loyal Site Supporter
Loyal Site Supporter
MossyRocks's Avatar

Join Date: Nov 2017
Location: Minnesota
Photos: Gallery | Albums
Posts: 2,982
I'm kind of curious how this will work with some very processed images. Not necessarily ones that have been pushed hard in a raw developer but I'm curious what it will do with a heavily processed astro image.
05-18-2021, 09:59 AM   #6
Site Supporter
Site Supporter
Michail_P's Avatar

Join Date: Nov 2019
Location: Kalymnos
Photos: Gallery
Posts: 3,006
Interesting.. but given the fact that it is a variance based software, I would really like to know how it can be practically useful.
05-18-2021, 10:44 AM - 2 Likes   #7
Senior Moderator
Loyal Site Supporter
Parallax's Avatar

Join Date: Apr 2008
Location: South Dakota
Photos: Gallery
Posts: 19,332
QuoteOriginally posted by dlhawes Quote
"Forgery" is the act of impersonating another in the production of a document, particularly by signing a name other than one's own................
Surely you're aware that legal definitions and common definitions can differ. Indeed that would be the definition in law of forgery as a verb, but Merriam-Webster defines forgery as a noun as "something forged". It defines something forged as:
2 :made falsely especially with intent to deceive
// forged signatures
//a forged document.
A photo that was photoshopped with intent to deceive would, by definition, be a forged document (or an electronic representation there of.)

Forgery | Definition of Forgery by Merriam-Webster
Forged | Definition of Forged by Merriam-Webster


Last edited by Parallax; 05-18-2021 at 11:07 AM.
05-18-2021, 01:18 PM   #8
dlhawes
Guest




QuoteOriginally posted by swanlefitte Quote
This confused me. Did Samuel Clemens commit forgery by signing Mark Twain?
No, because his pseudonym was his own name. If he'd published it under the name, "Ulysses L. Grant", that would have been a forgery, in the colloquial sense, because that was the name of of another living person (I think - someone who's already dead is not a "person"). In technical legal terms, "forgery" refers to a criminal offense involving documents that have some value, such as bank checks, wills, deeds, and such.


QuoteQuote:
The program detects alterations. I think someone claiming to have a photo of a shark swimming in a pool when it was photoshopped in could be considered forgery couldn't it?
Well, not by my lights. I'd have said, "faked", I think. But thanks for that explanation.
05-18-2021, 05:06 PM   #9
Pentaxian




Join Date: Mar 2013
Location: Washington State
Posts: 589
Cool! I don't care what they call it.
05-18-2021, 10:56 PM - 1 Like   #10
Site Supporter
Site Supporter




Join Date: Apr 2015
Posts: 3,520
Original Poster
Image-forgery is well described here:
Comparative Study of Image Forgery and Copy-Move Techniques | SpringerLink

On page 716 one can see a good sample and the two different approaches, i.e. active vs. passive.
Passive approach includes "tampering".

Image forgery is a well known but in Wikipedia it is called photograph manipulation.
I think "RETOUCHING" would be the best name, but the word "PHOTOSHOPPED" became quite popular due to the well know program.


But they gave their program their name and yet, when something is found it says:
"this image may have been tampered with".

I had a good friend who was a learned "Retoucher" (Retuscheur in German).
For a long time it was that very intensive work with the airbrush-gun, his main work was advertising.
Then came Adobe PS which changed everything.
Work with the airbrush-gun stayed for those who for example worked on cars but he did courses with all the computer-programs,
but all the sudden cheap competition was available, very difficult to earn one's living.

Anyway, through him I had learned to work with Adobe PS (it was then PS7 which I had started with, later came CS2 which I still use at times because it is very small compared to CC2017. One of my sons studied Media-Art+Design. The way he is able to use PS again and again stuns me, I feel like a shirt-button on his shirt.

A well known tool is the "clone stamp tool".

If you enlarge your photo right down to pixel size, it is possible to manipulate right down on that level.

And yet, traces you cannot see remain and this program can detect such manipulations.

Basically it was Adam who recommended this program and I tried it out but came to a point where it wouldn't work anymore.

So I contacted this person who writes computer programs and is very fit with Linux.
Within a short time he had repaired it and made it public.

I had asked him if he would be able to write a firmware for the K5 series to allow KAF4 lenses but found out it would take ages,
he isn't into photography at all, his work is on very different fields, were is is one of very few.

Last edited by photogem; 05-19-2021 at 05:01 AM.
05-19-2021, 05:00 AM   #11
Moderator
Man With A Camera
Loyal Site Supporter
Racer X 69's Avatar

Join Date: Jun 2010
Location: The Great Pacific Northwet, in the Land Between Canada and Mexico
Photos: Gallery | Albums
Posts: 28,067
QuoteOriginally posted by dlhawes Quote
"Forgery" is the act of impersonating another in the production of a document, particularly by signing a name other than one's own. So I'm not sure exactly what this program is actually doing in this context.
Forgery is a forged steel crankshaft in 4130 chromoly steel.

05-19-2021, 06:02 AM   #12
dlhawes
Guest




QuoteOriginally posted by Racer X 69 Quote
Forgery is a forged steel crankshaft in 4130 chromoly steel.
Exactly - that word is one of those that has acquired new meaning by metaphorical use. Such as the way "impact" no longer assumes either a direct object nor some kind of physical collision, and is used as a synonym for "affect".
05-19-2021, 06:13 AM - 1 Like   #13
Moderator
Man With A Camera
Loyal Site Supporter
Racer X 69's Avatar

Join Date: Jun 2010
Location: The Great Pacific Northwet, in the Land Between Canada and Mexico
Photos: Gallery | Albums
Posts: 28,067
QuoteOriginally posted by dlhawes Quote
Exactly - that word is one of those that has acquired new meaning by metaphorical use. Such as the way "impact" no longer assumes either a direct object nor some kind of physical collision, and is used as a synonym for "affect".
English is such a complex language.
05-19-2021, 08:06 AM   #14
Pentaxian
swanlefitte's Avatar

Join Date: May 2015
Location: Minneapolis
Photos: Gallery
Posts: 4,068
QuoteOriginally posted by photogem Quote
A well known tool is the "clone stamp tool".

If you enlarge your photo right down to pixel size, it is possible to manipulate right down on that level.

And yet, traces you cannot see remain and this program can detect such manipulations.
Have you figured out what it will detect? I am curious if you had dead pixels and used the in camera program to "get rid of them", would this be detected. Or using fill to remove sensor dust spots from blurred sky, (I do this one all the time). Cloning one pixel vs cloning in a forest are very different intentions.
It is interesting to know there is manipulation but "ethical" manipulation and detected manipulation may overlap so much it produces very noisey info.
05-19-2021, 09:24 AM   #15
Site Supporter
Site Supporter




Join Date: Apr 2015
Posts: 3,520
Original Poster
QuoteOriginally posted by swanlefitte Quote
Have you figured out what it will detect? I am curious if you had dead pixels and used the in camera program to "get rid of them", would this be detected. Or using fill to remove sensor dust spots from blurred sky, (I do this one all the time). Cloning one pixel vs cloning in a forest are very different intentions.
It is interesting to know there is manipulation but "ethical" manipulation and detected manipulation may overlap so much it produces very noisey info.
It detects the parts that have been tampered with, example:

Then you get a sample of the CFA-Detection and of the Copy-move-Detection.

If you are seriously interested: DIY!
Reply

Bookmarks
  • Submit Thread to Facebook Facebook
  • Submit Thread to Twitter Twitter
  • Submit Thread to Digg Digg
Tags - Make this thread easier to find by adding keywords to it!
detection, forgery, forgery pentax k-s2, photo industry, photography, program

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Theta plug-in: Person Detection & Counting Mistral75 Pentax News and Rumors 4 10-13-2020 10:18 AM
GRIII Face Detection BruceBanner Pentax Compact Cameras 5 04-06-2020 01:23 AM
New Sony Sensor - Quad Bayer Array and 2x2 pixel Phase Detection AF Winder Canon, Nikon, Sony, and Other Camera Brands 5 12-10-2019 09:53 PM
K30 autofocus system: phase detection vs contrast detection jaikumarr18 Pentax K-30 & K-50 4 06-01-2014 11:22 PM
Sheriff Joe Arpaio suggests Obama's birth certificate is a forgery jogiba General Talk 26 10-16-2012 05:12 AM



All times are GMT -7. The time now is 04:39 AM. | See also: NikonForums.com, CanonForums.com part of our network of photo forums!
  • Red (Default)
  • Green
  • Gray
  • Dark
  • Dark Yellow
  • Dark Blue
  • Old Red
  • Old Green
  • Old Gray
  • Dial-Up Style
Hello! It's great to see you back on the forum! Have you considered joining the community?
register
Creating a FREE ACCOUNT takes under a minute, removes ads, and lets you post! [Dismiss]
Top