Hehe nice. There is a whole community about this topic at: <a href="https://diybookscanner.org/" rel="nofollow noreferrer">https://diybookscanner.org/</a><p>Years ago I once wrote a little tool in Java called bookbuilder, where you could turn the pages manually, make a photo and then run an automatic process on all images to build a searchable pdf.<p>I used <a href="https://boofcv.org/" rel="nofollow noreferrer">https://boofcv.org/</a>, an impressive Computer Vision library in pure Java, still exists and it is pretty fast, too.<p>It was able to detect the page contour, deskew it, flatten the image and remove finger contours by matching the skin tone, then build a PDF with integrated invisible OCR Layer without any user interaction. I remember that I was working on line slope detection with some kind of watershed algorithm to improve the flattening part.<p>Fun project, I wonder if I have the source code laying around somewhere... even the download page is gone today. This was long before I went open source with all of my little side projects, because I never thought it could be interesting for someone else :-)