Table of Contents

Method CreateOCRHMMTransitionsTable

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

CreateOCRHMMTransitionsTable(string, IEnumerable<string>)

Creates a tailored language model transitions table from a given list of words (lexicon). The result can be used as input for OCRHMMDecoder.Create and OCRBeamSearchDecoder.Create.

public static Mat CreateOCRHMMTransitionsTable(string vocabulary, IEnumerable<string> lexicon)

Parameters

vocabulary string

The language vocabulary (chars when ASCII English text).

lexicon IEnumerable<string>

The list of words that are expected to be found in a particular image.

Returns

Mat

Table with transition probabilities between character pairs. cols == rows == vocabulary.Length.