pub trait OCRHMMDecoder_ClassifierCallbackTrait: OCRHMMDecoder_ClassifierCallbackTraitConst {
    fn as_raw_mut_OCRHMMDecoder_ClassifierCallback(&mut self) -> *mut c_void;

    fn eval(
        &mut self,
        image: &dyn ToInputArray,
        out_class: &mut Vector<i32>,
        out_confidence: &mut Vector<f64>
    ) -> Result<()> { ... } }

Required methods

Provided methods

The character classifier must return a (ranked list of) class(es) id(’s)

Parameters
  • image: Input image CV_8UC1 or CV_8UC3 with a single letter.
  • out_class: The classifier returns the character class categorical label, or list of class labels, to which the input image corresponds.
  • out_confidence: The classifier returns the probability of the input image corresponding to each classes in out_class.

Implementors