Measuring OCR accuracy: character error rate, word error rate and field accuracy, in Python
Character error rate (CER) is the number of character edits (insertions, deletions, substitutions) needed to turn the OCR output into the correct text, divided by the length of the correct text. Word error rate (WER) is the same at word level.