pub struct ExpectedRegion {
pub label: Option<String>,
pub bbox: Option<BoxPx>,
pub mask: Option<RleMask>,
}Expand description
A labelled region an answer must find, in source pixels.
Fields§
§label: Option<String>The class, concept or target name; an unlabelled region matches any answer label.
bbox: Option<BoxPx>The box; derived from mask when absent.
mask: Option<RleMask>The exact mask, for mask IoU.
Implementations§
Trait Implementations§
Source§impl Clone for ExpectedRegion
impl Clone for ExpectedRegion
Source§impl Debug for ExpectedRegion
impl Debug for ExpectedRegion
Source§impl<'de> Deserialize<'de> for ExpectedRegion
impl<'de> Deserialize<'de> for ExpectedRegion
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
Source§impl PartialEq for ExpectedRegion
impl PartialEq for ExpectedRegion
Source§impl Serialize for ExpectedRegion
impl Serialize for ExpectedRegion
impl StructuralPartialEq for ExpectedRegion
Auto Trait Implementations§
impl Forget for ExpectedRegion
impl Freeze for ExpectedRegion
impl Move for ExpectedRegion
impl RefUnwindSafe for ExpectedRegion
impl Send for ExpectedRegionwhere
RawVecInner: Send,
impl Sync for ExpectedRegionwhere
RawVecInner: Sync,
impl Unpin for ExpectedRegion
impl UnsafeUnpin for ExpectedRegion
impl UnwindSafe for ExpectedRegionwhere
RawVecInner: UnwindSafe,
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