pub trait Annotation {
// Required methods
fn image_id(&self) -> ImageId;
fn category_id(&self) -> CategoryId;
fn area(&self) -> f64;
fn is_crowd(&self) -> bool;
fn effective_ignore(&self, mode: ParityMode) -> bool;
}Expand description
Common interface every annotation type on every dataset implements.
The matching engine (per ADR-0005) reads only this trait — it does
not see CocoAnnotation or any future per-dataset annotation type
directly.
Required Methods§
Sourcefn category_id(&self) -> CategoryId
fn category_id(&self) -> CategoryId
Category this annotation belongs to.
Sourcefn effective_ignore(&self, mode: ParityMode) -> bool
fn effective_ignore(&self, mode: ParityMode) -> bool
Effective ignore flag under the given parity mode.