pub struct DbParams {
pub thresh: f32,
pub box_thresh: f32,
pub max_candidates: usize,
pub min_size: f64,
pub unclip_ratio: f64,
}Expand description
DB 后处理参数。
Fields§
§thresh: f32概率高于它的像素算文字。
box_thresh: f32框内平均概率不低于它才保留。
max_candidates: usize最多处理的轮廓数。
min_size: f64外扩前短边至少这么长(概率图像素);外扩后至少再长 2。
unclip_ratio: f64外扩比例。
Trait Implementations§
Auto Trait Implementations§
impl Forget for DbParams
impl Freeze for DbParams
impl Move for DbParams
impl RefUnwindSafe for DbParams
impl Send for DbParams
impl Sync for DbParams
impl Unpin for DbParams
impl UnsafeUnpin for DbParams
impl UnwindSafe for DbParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more