Handwritten text recognition (HTR)

I am working on a prototype, which extracts the handwritten text from scanned documents / images and the output is stored in JSON / .text format . The efficiency of the prototype to extract the handwritten text is still low, how do I increase the efficiency to extract handwritten text.