[][src]Struct opencv::dnn::TextRecognitionModel

pub struct TextRecognitionModel { /* fields omitted */ }

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

impl TextRecognitionModel[src]

impl TextRecognitionModel[src]

pub fn default() -> Result<TextRecognitionModel>[src]

pub fn new(network: &Net) -> Result<TextRecognitionModel>[src]

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

Parameters

  • network: Net object

pub fn new_1(model: &str, config: &str) -> Result<TextRecognitionModel>[src]

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

impl Boxed for TextRecognitionModel[src]

impl Drop for TextRecognitionModel[src]

impl ModelTrait for TextRecognitionModel[src]

impl Send for TextRecognitionModel[src]

impl TextRecognitionModelTrait for TextRecognitionModel[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.