pub struct Region {
pub x0: f32,
pub y0: f32,
pub x1: f32,
pub y1: f32,
pub label: String,
pub kind: String,
pub score: f32,
}Expand description
一个版面区域,坐标是原图像素。
Fields§
§x0: f32§y0: f32§x1: f32§y1: f32§label: String类别名(config.json 的 id2label,例如 formula、formula_number、text)。
kind: String细分类名(inference.yml 的 label_list,例如 display_formula、inline_formula);
没有那个文件时同 label。
score: f32分数,0–1。
Trait Implementations§
impl StructuralPartialEq for Region
Auto Trait Implementations§
impl Forget for Region
impl Freeze for Region
impl RefUnwindSafe for Region
impl Send for Region
impl Sync for Region
impl Unpin for Region
impl UnsafeUnpin for Region
impl UnwindSafe for Region
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