https://github.com/ocropus/hocr-tools
I am not able to install few dependencies of hocr-tools in ubuntu20.04 with python3.8 but it was working fine in ub