Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #197843

Re: PSA Using Python Pillow to foil camera image PRNU fingerprinting

From Maria Sophia <mariasophia@comprehension.com>
Newsgroups rec.photo.digital, comp.lang.python, alt.comp.os.windows-10
Subject Re: PSA Using Python Pillow to foil camera image PRNU fingerprinting
Date 2026-07-31 14:10 -0800
Organization BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID <114j6g1$1o5m$1@nnrp.usenet.blueworldhosting.com> (permalink)
References <114en2t$7bu$1@nnrp.usenet.blueworldhosting.com> <114f0l7$1is0l$1@dont-email.me> <114frd8$2okp$1@nnrp.usenet.blueworldhosting.com> <114ge7d$24ndu$3@dont-email.me>

Cross-posted to 3 groups.

Show all headers | View raw


Lawrence D'Oliveiro wrote:
>> With respect to the Pillow imaging tools, the part I'm experimenting
>> with is how best to easily break that PRNU fingerprint with image
>> manipulation.
> 
> You mean in the general case, for an image obtained from an unknown
> camera?
> 
> Because if you only want to do it for your own camera(s), you can do
> what the Wikipedia article describes, and use a calibration image to
> determine the sensor "fingerprint", so you can subtract that from all
> images you intend to publish.

You bring up a good point, which is we control the camera so we control the
image that comes out of that camera and which is posted to the Internet.

Given PRNU subtraction requires something like 20-50 images from the same
camera, we could indeed compute a reference fingerprint amd then subtract
that fingerprint from future images posted to the Internet.

Thanks for that idea.
It changes how the PRNU.py script works, so it's another script algogether.

The PRNU.py script I'm experimenting with is aimed at the general case,
where the camera is unknown and we don't have access to a calibration set. 

In that situation, we can't subtract a fingerprint because we don't have
one. So the first practical option I came up with was to decorrelate the
sensor pattern through geometric distortion, resampling, blur and tiny
perturbations.

However, your suggestion is actually a better approach overall, since I am
trying to help all of us protect our own images out of our own cameras.

I'll have to do a lot more research to write the program to do that though.

But how does this sound as a game plan for creating that flow on Windows?
1. Build a reference PRNU fingerprint from a folder of calibration images
2. Subtract that fingerprint from a target image we want to publish
-- 
Privacy isn't something we get by accident. It's something we build	.

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

PSA Using Python Pillow to foil camera image PRNU fingerprinting Maria Sophia <mariasophia@comprehension.com> - 2026-07-29 22:22 -0700
  Re: PSA Using Python Pillow to foil camera image PRNU fingerprinting Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-07-30 08:06 +0000
    Re: PSA Using Python Pillow to foil camera image PRNU fingerprinting Maria Sophia <mariasophia@comprehension.com> - 2026-07-30 07:42 -0800
      Re: PSA Using Python Pillow to foil camera image PRNU fingerprinting Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-07-30 21:03 +0000
        Re: PSA Using Python Pillow to foil camera image PRNU fingerprinting Maria Sophia <mariasophia@comprehension.com> - 2026-07-31 14:10 -0800
          Re: PSA Using Python Pillow to foil camera image PRNU fingerprinting Maria Sophia <mariasophia@comprehension.com> - 2026-07-31 14:51 -0800
            Re: PSA Using Python Pillow to foil camera image PRNU fingerprinting Maria Sophia <mariasophia@comprehension.com> - 2026-07-31 15:02 -0800
      Re: PSA Using Python Pillow to foil camera image PRNU fingerprinting Piergiorgio Sartor <piergiorgio.sartor.this.should.not.be.used@nexgo.REMOVETHIS.de> - 2026-07-31 09:35 +0200
        Re: PSA Using Python Pillow to foil camera image PRNU fingerprinting Maria Sophia <mariasophia@comprehension.com> - 2026-07-31 13:59 -0800
          Re: PSA Using Python Pillow to foil camera image PRNU fingerprinting Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-07-31 22:49 +0000
            Re: PSA Using Python Pillow to foil camera image PRNU fingerprinting Maria Sophia <mariasophia@comprehension.com> - 2026-07-31 15:13 -0800
              Re: PSA Using Python Pillow to foil camera image PRNU fingerprinting Piergiorgio Sartor <piergiorgio.sartor.this.should.not.be.used@nexgo.REMOVETHIS.de> - 2026-08-01 11:48 +0200
                Re: PSA Using Python Pillow to foil camera image PRNU fingerprinting Maria Sophia <mariasophia@comprehension.com> - 2026-08-01 09:42 -0800
                Re: PSA Using Python Pillow to foil camera image PRNU fingerprinting Maria Sophia <mariasophia@comprehension.com> - 2026-08-03 09:28 -0800
                Re: PSA Using Python Pillow to foil camera image PRNU fingerprinting Chris <ithinkiam@gmail.com> - 2026-08-02 17:48 +0000
                Re: PSA Using Python Pillow to foil camera image PRNU fingerprinting Maria Sophia <mariasophia@comprehension.com> - 2026-08-02 11:18 -0800
                Re: PSA Using Python Pillow to foil camera image PRNU fingerprinting Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-08-02 22:54 +0000
                Re: PSA Using Python Pillow to foil camera image PRNU fingerprinting Maria Sophia <mariasophia@comprehension.com> - 2026-08-03 09:20 -0800
                Re: PSA Using Python Pillow to foil camera image PRNU fingerprinting Chris <ithinkiam@gmail.com> - 2026-08-03 17:50 +0000
                Re: PSA Using Python Pillow to foil camera image PRNU fingerprinting Maria Sophia <mariasophia@comprehension.com> - 2026-08-20 09:03 -0800
                Re: PSA Using Python Pillow to foil camera image PRNU fingerprinting danny burstein <dannyb@panix.com> - 2026-08-20 17:28 +0000
                How to increase your "Convincingness" [Anthropic AI Text Hacked] (Was: PSA Using Python Pillow to foil camera image PRNU fingerprinting) Mild Shock <janburse@fastmail.fm> - 2026-08-20 19:30 +0200

csiph-web