Back in 2012, there was a guy who started an open source project that did exactly this - he wrote it specifically for the DIY Book scanner. It had a local Django project as the interface. I don't remember the details, but it did a decent job of taking the images, OCR'ing them and creating an output PDF.
I believe he abandoned the project some years later as life got busy and he never found enough volunteers to help him.
Would have to go through my email records to find the name of the project.
Not the same as Scan Tailor[1,2] ? Which was referenced from the Instructables link cited earlier. That apparently was a comprehensive toolkit in C++ and Qt, now archived.
[2] https://web.archive.org/web/20210304015939/https://github.co...
There are a couple folks that forked scantailor. I'm not sure the status of those. Here are a couple:
https://github.com/4lex4/scantailor-advanced
https://github.com/trufanov-nok/scantailor-universal