Trait opencv::text::TextDetectorTrait
source · pub trait TextDetectorTrait: TextDetectorTraitConst {
// Required method
fn as_raw_mut_TextDetector(&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::TextDetector
Required Methods§
fn as_raw_mut_TextDetector(&mut self) -> *mut c_void
Provided Methods§
sourcefn detect(
&mut self,
input_image: &impl ToInputArray,
bbox: &mut Vector<Rect>,
confidence: &mut Vector<f32>
) -> Result<()>
fn detect( &mut self, input_image: &impl ToInputArray, bbox: &mut Vector<Rect>, confidence: &mut Vector<f32> ) -> Result<()>
Method that provides a quick and simple interface to detect text inside an image
Parameters
- inputImage: an image to process
- 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.