It's a hard problem. I can't think of a way that doesn't involve destroying a physical copy to OCR, and that's a lot of manual effort.I've worked at places with serious quality management systems, the problem isn't hard. The answer is easy and obvious: incoming inspection.
Unless "scale" means the percentage of product that passes through inspection is zero. In which case the problem is only hard because the problem isn't how to do something, the problem is how get the benefit of having done something without doing it (whether through inspection, not co-mingling, etc...).
In the case of No Starch Press, the build quality issues were noticeable without scanning the book. And even cutting the spine and covers off of a book to scan it isn't that much manual effort with the right hardware. One of the offices at my college had the cutter and bulk scanner, it was so not a big deal for them to use that they'd digitize a semester's worth of course textbooks for anyone who asked.