pub struct TextRecognitionModel { /* private fields */ }
Expand description

This class represents high-level API for text recognition networks.

TextRecognitionModel allows to set params for preprocessing input image. TextRecognitionModel creates net from file with trained weights and config, sets preprocessing input, runs forward pass and return recognition result. For TextRecognitionModel, CRNN-CTC is supported.

Implementations

Create Text Recognition model from deep learning network Call setDecodeType() and setVocabulary() after constructor to initialize the decoding method

Parameters
  • network: Net object

Create text recognition model from network represented in one of the supported formats Call setDecodeType() and setVocabulary() after constructor to initialize the decoding method

Parameters
  • model: Binary file contains trained weights
  • config: Text file contains network configuration
C++ default parameters
  • config: “”

Trait Implementations

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
Converts to this type from the input type.
Set input size for frame. Read more
Set input size for frame. Read more
Set mean value for frame. Read more
Set scalefactor value for frame. Read more
Set flag crop for frame. Read more
Set flag swapRB for frame. Read more
Set preprocessing parameters for frame. Read more
See also Read more
See also Read more
Given the @p input frame, create input blob, run net and return the output @p blobs. Read more
Set the decoding method of translating the network output into string Read more
Set the decoding method options for "CTC-prefix-beam-search" decode usage Read more
Set the vocabulary for recognition. Read more
Get the decoding method Read more
Get the vocabulary for recognition. Read more
Given the @p input frame, create input blob, run net and return recognition result Read more
Given the @p input frame, create input blob, run net and return recognition result 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.