[][src]Trait opencv::dnn::prelude::TextDetectionModel_EASTTrait

pub trait TextDetectionModel_EASTTrait: TextDetectionModelTrait {
    pub fn as_raw_TextDetectionModel_EAST(&self) -> *const c_void;
pub fn as_raw_mut_TextDetectionModel_EAST(&mut self) -> *mut c_void; pub fn set_confidence_threshold(
        &mut self,
        conf_threshold: f32
    ) -> Result<TextDetectionModel_EAST> { ... }
pub fn get_confidence_threshold(&self) -> Result<f32> { ... }
pub fn set_nms_threshold(
        &mut self,
        nms_threshold: f32
    ) -> Result<TextDetectionModel_EAST> { ... }
pub fn get_nms_threshold(&self) -> Result<f32> { ... } }

This class represents high-level API for text detection DL networks compatible with EAST model.

Configurable parameters:

  • (float) confThreshold - used to filter boxes by confidences, default: 0.5f
  • (float) nmsThreshold - used in non maximum suppression, default: 0.0f

Required methods

Loading content...

Provided methods

pub fn set_confidence_threshold(
    &mut self,
    conf_threshold: f32
) -> Result<TextDetectionModel_EAST>
[src]

Set the detection confidence threshold

Parameters

  • confThreshold: A threshold used to filter boxes by confidences

pub fn get_confidence_threshold(&self) -> Result<f32>[src]

Get the detection confidence threshold

pub fn set_nms_threshold(
    &mut self,
    nms_threshold: f32
) -> Result<TextDetectionModel_EAST>
[src]

Set the detection NMS filter threshold

Parameters

  • nmsThreshold: A threshold used in non maximum suppression

pub fn get_nms_threshold(&self) -> Result<f32>[src]

Get the detection confidence threshold

Loading content...

Implementors

Loading content...