Trait opencv::text::prelude::TextDetectorCNNTrait

source ·
pub trait TextDetectorCNNTrait: TextDetectorCNNTraitConst + TextDetectorTrait {
    // Required method
    fn as_raw_mut_TextDetectorCNN(&mut self) -> *mut c_void;

    // Provided method
    fn detect(
        &mut self,
        input_image: &impl ToInputArray,
        bbox: &mut Vector<Rect>,
        confidence: &mut Vector<f32>
    ) -> Result<()> { ... }
}
Expand description

Mutable methods for crate::text::TextDetectorCNN

Required Methods§

Provided Methods§

source

fn detect( &mut self, input_image: &impl ToInputArray, bbox: &mut Vector<Rect>, confidence: &mut Vector<f32> ) -> Result<()>

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

§Parameters
  • inputImage: an image expected to be a CV_U8C3 of any size
  • Bbox: a vector of Rect that will store the detected word bounding box
  • confidence: a vector of float that will be updated with the confidence the classifier has for the selected bounding box

Object Safety§

This trait is not object safe.

Implementors§