pub struct Quadrilateral {
pub points: [Vec2; 4],
pub area: f32,
pub score: f32,
}Expand description
代表检测到的文档四边形。
顶点顺序固定为 [左上, 右上, 右下, 左下](图像坐标系,y 向下)。
Fields§
§points: [Vec2; 4]顶点数组,顺序:[左上, 右上, 右下, 左下]
area: f32四边形围成的面积(像素²)
score: f32置信度评分(0.0 ~ 1.0)
Trait Implementations§
Source§impl Clone for Quadrilateral
impl Clone for Quadrilateral
Source§fn clone(&self) -> Quadrilateral
fn clone(&self) -> Quadrilateral
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Quadrilateral
impl RefUnwindSafe for Quadrilateral
impl Send for Quadrilateral
impl Sync for Quadrilateral
impl Unpin for Quadrilateral
impl UnsafeUnpin for Quadrilateral
impl UnwindSafe for Quadrilateral
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more