This is fantastic, I would only suggest one more thing, yesterday there was article on first page about vectorization, so further compression and cleaning could be done if text would convert to vectors, links is:
https://mzucker.github.io/2018/05/14/maptrace.html