486 points · by SergeAx · 5y ago · 184 comments
I have a habit of scanning invoices/statements/manuals etc to pdf and found the above quite alarming. Though I don't use Xerox (my scanner is Epson Perfection V39), I never considered the possibility that a scan of a document can result in altered numbers. How do I know if my scanner could also be affected in case it uses similar underlying software/setup?
If however it uses lossy JBIG2 compression, it is quite possible that it suffers from the same problem, due to how lossy JBIG2 compression works.
Which brings up another point: How did Xerox's SW development process take place? Was it done in-house with frequent code reviews or was it outsourced to a low bidder and then thrown back over the wall with no real quality assurance process?
PDF is widely more common and there are a million different ways you can write them. Including with JBIG2 images.
> In the next section, there is a a short manual for you to reproduce the error and see of you are affected.
I guess, if the scanner offers JBIG2 format option, it may need a test at least.
8 years ago / 112 comments: https://news.ycombinator.com/item?id=6156238
6 years ago / 22 comments: https://news.ycombinator.com/item?id=9584172
In my post I just picked the first main stream media outlet (CBC in my post). today’s post is much better.
Ony 6 comments, though numerous updoots. I usually consider < 10 comments minor. HN does permit reposts after a seemly interval.
It’s easy to ridicule this, and I do think that particular judge’s thought process was rooted in ignorance rather than plausible paranoia, but it’s not hard to see how cases like this Xerox bug sow the seeds of distrust in the non-tech populace. There really isn’t a lot of clear daylight between “the scanned copy might be different to the original” and “the zoomed version might be different to the original”.
Some mocked the judge but here's an example where an AI upscaling algorithm added a human face that was never there:
https://petapixel.com/2020/08/17/gigapixel-ai-accidentally-a...
For terminology trivia, that algorithm seems to be doing a human version of pareidolia :https://en.wikipedia.org/wiki/Pareidolia
EDIT: based on some replies I see, my cite isn't to claim that Apple iOS is using AI enhancement during zoom to add fake pixels. The point is to consider why the judge (who is not a computer programmer) is skeptical. Therefore, his request for expert testimony to rule out that the zoom function doesn't add false information is not that unreasonable.
In other words, what's obvious to a HN tech audience doesn't always apply to judges who don't have the same technical knowledge of how zoom algorithms actually work. So considering the judge's state of mind, the "fact" that iOS zoom doesn't add false incriminating pixels isn't a fact to his level of satisfaction unless the prosecutors bring in an expert to confirm it.
https://www.usnews.com/news/technology/articles/2021-11-11/b...
Zooming is another issue entirely.
Remember, for most users, a photo only has to be as accurate as their own memories. If extra detail is added to make the photo look better, it doesn't matter as long as it isn't detail the user remembers differently.
From what the judge has seen in this trial, the prosecution has shown it will stoop to any low to get prejudicial evidence in front of the jury. I don't blame him at all for not just taking the prosecution's word for the veracity, authenticity and provenance of the photo.
1: https://geekologie.com/2020/10/nvidia-creates-ai-video-compr...
The prosecution was arguing about what essentially came down to the location of 1-2 individual pixels that were present after the image had been interpolated. Basically: the pixels that the prosecution were trying to argue showed the pointing of a gun were:
1) Only apparent when the image was "zoomed" (interpolated) in exactly the manner they wanted to use.
2) Not apparent in any of the videos or photos which were taken closer to the place they were talking about.
The prosecution is depending on the idea that a computer can see more than a human can, and "enhance" a photo in such a way that shows something that nothing else does. It is absolutely ridiculous. Here is the image (linked above) which was itself cropped from a much larger image, and taken from about 150 meters away, at night, from the tiny sensor on a drone camera.
Not sure I follow. Someone questions a technical process because it might add extra information seems like a fairly cogent thought and awareness of tech. Even if it's not described or discussed in technical terms.
And furthermore that this isn’t a slight on him, given how hard it is for the public to divine exactly how technology works, as illustrated by Xerox.
I do not know how this relates to this specific trial, but if I were a judge I would want to rule out that footage used as evidence was manipulated by "AI".
The judge further clarified by using an analogy, breathalyzers are often used by cops who dont know how they work, but the breathalyzers machine has already been judicially accepted as reliable evidence. This is not the case for upscale images.
The Youtube channel is there only, because people didn't respected the unwritten rules and put the content on Youtube anyway. But we like to distribute the content always from its original source, also with privacy in mind.
[1] https://media.ccc.de/v/31c3_-_6558_-_de_-_saal_g_-_201412282...
The “unwritten” rules end up hugely restricting the dissemination of this, and other, awesome content on ideological grounds that not everyone feels as strongly about as you and the CCC.
So do upload it to YouTube and anywhere else, spread the knowledge and link to whatever you please.
He also has a talk about mining data from German Railway (Deutsche Bahn) which is good.
[0]: https://media.ccc.de/v/31c3_-_6558_-_de_-_saal_g_-_201412282...
My comment was a regrettably rude way of asking if an English translation is available elsewhere, and fortunately it worked :)
Just like there are printer-scanners that won't scan if the ink is empty.
But large document archives are traditionally done with TIFF, and should still be done like that.
Its actually nightmarish.
A silent corruption of court-documents, stored plans and land-records, patent-filings with the originals often permanently gone.
Contracts that can be nulled and voided by a hostile party on this basis by simply challenging the document on basis of the archiving process.
A error so deep and systematic, it even mangled the birth certificate of the us-president when it was scanned. The whole affair is a huge advertisement for keeping written records and avoid digitization, same as voting machines.
I didn't like any of the existing Linux scanning solutions, so I built my own paperless management tool. I was evaluating different compression algorithms for keeping authoritative masters and was eyeing JPEG2000 (I hate JPEG artifacts). But in the end I decided to go with FLIF, which is lossless. Despite its lower amount of battle testing, being lossless allows me to run a sha256 on the decompressed image and know that it is exactly what I had scanned in.
1. https://gigazine.net/gsc_news/en/20200720-cia-spies-xerox-ma...
2. https://arstechnica.com/information-technology/2017/06/how-a...
Who else used to use scanners?
Apps like Office Lens will undistort the pic and it just looks good enough. (App knows you are taking a picture of A4 page, so it knows how to make it look straight + white.)
> CamScanner
And then it got bought and malware added. https://news.ycombinator.com/item?id=20818177These days on Android, Google Drive's scan functionality works just as well as CamScanner used to. I use it for a lot of cases where I'd previously use a proper scanner - it's good enough most of the time.
Or even Google Lens / Google Camera does a decent job of scanning in the special scan document mode, although you have to rely on the software actually recognizing that's what you're trying to do to get the button to show up to start the process.
Since then I've written an ImageMagick script that converts phone photographs of documents into reasonably convincing "scans."
By the way, reading the blog post I stumbled on quite a few minor typos (like "arrors" for "errors" etc.). Should be easy to fix, but in a way this adds more emphasis and mood to the content...
For example, my scanner has an 8 color compression mode. Great! So I scan in a piece of paper printed in 3 colors - black, white, and, say, green. The green comes out as a dithering of multiple colors. Why can't the compression format figure out what are the dominant 8 colors in the scan, put out a table of the RGB values of those 8 colors, then compress to 8 colors? This would look and work great for an awful lot of scans.
Another problem is b/w photos mixed with text. Setting the scanner to staic level black/white pixesl works great for text, but terrible for photos. Setting it to greyscale works great for photos, but terrible for text. Oh how I wish it would recognize greyscale areas and use greyscale for them, and black on white text areas and use static black/white pixels for them.
[1] https://web.archive.org/web/20130811004759/http://realbusine...