pub enum Shape {
Everything,
Circle(CircleParams),
Polygon(PolygonParams),
MultipleCircles(Vec<CircleParams>),
}Expand description
Geometric shapes that can be used for regions, annotations, or masks.
This enum provides various geometric primitives for defining areas of interest, valid regions, or annotation overlays on video frames.
Variants§
Everything
Represents the entire image area
Circle(CircleParams)
A circular region
Polygon(PolygonParams)
A polygonal region with arbitrary vertices
MultipleCircles(Vec<CircleParams>)
Multiple individual circles
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Shape
impl<'de> Deserialize<'de> for Shape
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Shape
Auto Trait Implementations§
impl Freeze for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnwindSafe for Shape
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