ocrMetrics
Description
The ocrMetrics
object stores optical character recognition
(OCR) quality metrics, consisting of the character and word error rates, for a set of images.
The evaluateOCR
function returns the ocrMetrics
object.
Creation
Create an OCR quality metrics object by using the evaluateOCR
function.
Properties
Examples
Algorithms
Error rates are a percentage of characters (words) in the input
groundTruthTxt
that have been incorrectly predicted inresultTxt
.To compute the number of incorrect predictions to use in the error rate calculation, the function uses the Levenshtein distance, which is defined as the minimum number of edits (such as insertions, deletions, or substitutions) required to change one word (or sentence) into another one.
Error rate = (S + D + I)/N where,
S — Number of substitutions
D — Number of deletions
I — Number of insertions
N — Maximum number of characters (words) between
groundTruthTxt
orresultTxt
Version History
Introduced in R2023a