[−][src]Trait opencv::dnn::prelude::TextDetectionModel_DBTrait
This class represents high-level API for text detection DL networks compatible with DB model.
Related publications: liao2020real Paper: https://arxiv.org/abs/1911.08947 For more information about the hyper-parameters setting, please refer to https://github.com/MhLiao/DB
Configurable parameters:
- (float) binaryThreshold - The threshold of the binary map. It is usually set to 0.3.
- (float) polygonThreshold - The threshold of text polygons. It is usually set to 0.5, 0.6, and 0.7. Default is 0.5f
- (double) unclipRatio - The unclip ratio of the detected text region, which determines the output size. It is usually set to 2.0.
- (int) maxCandidates - The max number of the output results.
Required methods
pub fn as_raw_TextDetectionModel_DB(&self) -> *const c_void
[src]
pub fn as_raw_mut_TextDetectionModel_DB(&mut self) -> *mut c_void
[src]
Provided methods
pub fn set_binary_threshold(
&mut self,
binary_threshold: f32
) -> Result<TextDetectionModel_DB>
[src]
&mut self,
binary_threshold: f32
) -> Result<TextDetectionModel_DB>
pub fn get_binary_threshold(&self) -> Result<f32>
[src]
pub fn set_polygon_threshold(
&mut self,
polygon_threshold: f32
) -> Result<TextDetectionModel_DB>
[src]
&mut self,
polygon_threshold: f32
) -> Result<TextDetectionModel_DB>
pub fn get_polygon_threshold(&self) -> Result<f32>
[src]
pub fn set_unclip_ratio(
&mut self,
unclip_ratio: f64
) -> Result<TextDetectionModel_DB>
[src]
&mut self,
unclip_ratio: f64
) -> Result<TextDetectionModel_DB>
pub fn get_unclip_ratio(&self) -> Result<f64>
[src]
pub fn set_max_candidates(
&mut self,
max_candidates: i32
) -> Result<TextDetectionModel_DB>
[src]
&mut self,
max_candidates: i32
) -> Result<TextDetectionModel_DB>