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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.