{"repo":"githubharald/SimpleHTR","free":true,"listed":false,"github":"https://github.com/githubharald/SimpleHTR","clone":"git clone https://github.com/githubharald/SimpleHTR.git","description":"Handwritten Text Recognition (HTR) system implemented with TensorFlow.","language":"Python","stars":2180,"topics":["handwritten-text-recognition","ocr","recurrent-neural-networks","tensorflow","deep-learning","machine-learning"],"license":"MIT","category":"machine-learning","readme_excerpt":"Handwritten Text Recognition with TensorFlow Update 2023/2: a web demo is available Update 2023/1: see HTRPipeline for a package to read full pages Update 2021/2: recognize text on line level (multiple words) Update 2021/1: more robust model, faster dataloader, word beam search decoder also available for Windows Update 2020: code is compatible with TF2 Handwritten Text Recognition (HTR) system implemented with TensorFlow (TF) and trained on the IAM off-line HTR dataset. The model takes images of single words or text lines (multiple words) as input and outputs the recognized text . 3/4 of the words from the validation-set are correctly recognized, and the character error rate is around 10%. Run demo Download one of the pretrained models Model trained on word images: only handles single words per image, but gives better results on the IAM word dataset Model trained on text line images: can handle multiple words in one image Put the contents of the downloaded zip-file into the model directory of the repository Go to the src directory Run inference code: Execute python main.py to run the model on an image of a word Execute python main.py --img file ../data/line.png to run the model on an image of a text line The input images, and the expected outputs are shown below when the text line model is used. Command line arguments --mode : select between \"train\", \"validate\" and \"infer\". Defaults to \"infer\". --decoder : select from CTC decoders \"bestpath\", \"beamsearch\" and \"wordbeamsearch\"","default_branch":null,"files":null,"tree":[],"storefront":"/r/githubharald","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/githubharald/SimpleHTR/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}