pub enum AnnotationType {
Box2d,
Box3d,
Polygon,
Mask,
}Expand description
Annotation types supported for labeling data in EdgeFirst Studio.
Represents the different types of annotations that can be applied to sensor data for machine learning tasks. Each type corresponds to a different annotation geometry and use case.
§Examples
use edgefirst_client::AnnotationType;
// Create annotation types from strings (using TryFrom)
let box_2d: AnnotationType = "box2d".try_into().unwrap();
let segmentation: AnnotationType = "polygon".try_into().unwrap();
// Or use From with String
let box_2d = AnnotationType::from("box2d".to_string());
let segmentation = AnnotationType::from("polygon".to_string());
// Display annotation types
println!("Annotation type: {}", box_2d); // "Annotation type: box2d"
// Use in matching and processing
let annotation_type = AnnotationType::Box2d;
match annotation_type {
AnnotationType::Box2d => println!("Processing 2D bounding boxes"),
AnnotationType::Box3d => println!("Processing 3D bounding boxes"),
AnnotationType::Polygon => println!("Processing polygon contours"),
AnnotationType::Mask => println!("Processing raster pixel masks"),
}Variants§
Box2d
2D bounding boxes for object detection in images
Box3d
3D bounding boxes for object detection in 3D space (LiDAR, etc.)
Polygon
Vector polygon contours for instance segmentation
Mask
Raster pixel masks for semantic/instance segmentation
Implementations§
Source§impl AnnotationType
impl AnnotationType
Sourcepub fn as_server_type(&self) -> &'static str
pub fn as_server_type(&self) -> &'static str
Returns the annotation type name expected by the server’s
samples/annotations RPC types filter.
The bridge endpoint accepts these I/O names and maps them to its
internal DB types (box/3dbox/seg) itself; sending the DB names
directly does not match the filter and silently drops it (see
dve-database api/bridge_handler.go TYPE_MAP).
Box2d→"box2d"Box3d→"box3d"Polygon/Mask→"mask"
Trait Implementations§
Source§impl Clone for AnnotationType
impl Clone for AnnotationType
Source§fn clone(&self) -> AnnotationType
fn clone(&self) -> AnnotationType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AnnotationType
impl Debug for AnnotationType
Source§impl Display for AnnotationType
impl Display for AnnotationType
impl Eq for AnnotationType
Source§impl From<&String> for AnnotationType
impl From<&String> for AnnotationType
Source§impl From<String> for AnnotationType
impl From<String> for AnnotationType
Source§impl PartialEq for AnnotationType
impl PartialEq for AnnotationType
Source§fn eq(&self, other: &AnnotationType) -> bool
fn eq(&self, other: &AnnotationType) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AnnotationType
Auto Trait Implementations§
impl Freeze for AnnotationType
impl RefUnwindSafe for AnnotationType
impl Send for AnnotationType
impl Sync for AnnotationType
impl Unpin for AnnotationType
impl UnsafeUnpin for AnnotationType
impl UnwindSafe for AnnotationType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Key for Twhere
T: Clone,
impl<T> Key for Twhere
T: Clone,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more