Trait opencv::prelude::TextDetectionModel_EASTTrait
source · pub trait TextDetectionModel_EASTTrait: TextDetectionModelTrait + TextDetectionModel_EASTTraitConst {
// Required method
fn as_raw_mut_TextDetectionModel_EAST(&mut self) -> *mut c_void;
// Provided methods
fn set_confidence_threshold(
&mut self,
conf_threshold: f32
) -> Result<TextDetectionModel_EAST> { ... }
fn set_nms_threshold(
&mut self,
nms_threshold: f32
) -> Result<TextDetectionModel_EAST> { ... }
}
Expand description
Mutable methods for crate::dnn::TextDetectionModel_EAST
Required Methods§
fn as_raw_mut_TextDetectionModel_EAST(&mut self) -> *mut c_void
Provided Methods§
sourcefn set_confidence_threshold(
&mut self,
conf_threshold: f32
) -> Result<TextDetectionModel_EAST>
fn set_confidence_threshold( &mut self, conf_threshold: f32 ) -> Result<TextDetectionModel_EAST>
Set the detection confidence threshold
Parameters
- confThreshold: A threshold used to filter boxes by confidences
sourcefn set_nms_threshold(
&mut self,
nms_threshold: f32
) -> Result<TextDetectionModel_EAST>
fn set_nms_threshold( &mut self, nms_threshold: f32 ) -> Result<TextDetectionModel_EAST>
Set the detection NMS filter threshold
Parameters
- nmsThreshold: A threshold used in non maximum suppression