Struct opencv::text::OCRHMMDecoder[][src]

pub struct OCRHMMDecoder { /* fields omitted */ }
Expand description

OCRHMMDecoder class provides an interface for OCR using Hidden Markov Models.

Note:

Implementations

Creates an instance of the OCRHMMDecoder class. Initializes HMMDecoder.

Parameters

  • classifier: The character classifier with built in feature extractor.

  • vocabulary: The language vocabulary (chars when ascii english text). vocabulary.size() must be equal to the number of classes of the classifier.

  • transition_probabilities_table: Table with transition probabilities between character pairs. cols == rows == vocabulary.size().

  • emission_probabilities_table: Table with observation emission probabilities. cols == rows == vocabulary.size().

  • mode: HMM Decoding algorithm. Only OCR_DECODER_VITERBI is available for the moment (http://en.wikipedia.org/wiki/Viterbi_algorithm).

C++ default parameters

  • mode: OCR_DECODER_VITERBI

Creates an instance of the OCRHMMDecoder class. Loads and initializes HMMDecoder from the specified path

 Creates an instance of the OCRHMMDecoder class. Initializes HMMDecoder.

Parameters

  • classifier: The character classifier with built in feature extractor.

  • vocabulary: The language vocabulary (chars when ascii english text). vocabulary.size() must be equal to the number of classes of the classifier.

  • transition_probabilities_table: Table with transition probabilities between character pairs. cols == rows == vocabulary.size().

  • emission_probabilities_table: Table with observation emission probabilities. cols == rows == vocabulary.size().

  • mode: HMM Decoding algorithm. Only OCR_DECODER_VITERBI is available for the moment (http://en.wikipedia.org/wiki/Viterbi_algorithm).

Overloaded parameters

C++ default parameters

  • mode: OCR_DECODER_VITERBI
  • classifier: OCR_KNN_CLASSIFIER

Trait Implementations

C++ default parameters Read more

C++ default parameters Read more

Wrap the specified raw pointer Read more

Return an the underlying raw pointer while consuming this wrapper. Read more

Return the underlying raw pointer. Read more

Return the underlying mutable raw pointer Read more

Executes the destructor for this type. Read more

Recognize text using HMM. Read more

Recognize text using HMM. Read more

C++ default parameters Read more

C++ default parameters Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.