pub struct Builder { /* private fields */ }Expand description
A builder for Label.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn confidence(self, input: f32) -> Self
pub fn confidence(self, input: f32) -> Self
Level of confidence.
sourcepub fn set_confidence(self, input: Option<f32>) -> Self
pub fn set_confidence(self, input: Option<f32>) -> Self
Level of confidence.
sourcepub fn instances(self, input: Instance) -> Self
pub fn instances(self, input: Instance) -> Self
Appends an item to instances.
To override the contents of this collection use set_instances.
If Label represents an object, Instances contains the bounding boxes for each instance of the detected object. Bounding boxes are returned for common object labels such as people, cars, furniture, apparel or pets.
sourcepub fn set_instances(self, input: Option<Vec<Instance>>) -> Self
pub fn set_instances(self, input: Option<Vec<Instance>>) -> Self
If Label represents an object, Instances contains the bounding boxes for each instance of the detected object. Bounding boxes are returned for common object labels such as people, cars, furniture, apparel or pets.
sourcepub fn parents(self, input: Parent) -> Self
pub fn parents(self, input: Parent) -> Self
Appends an item to parents.
To override the contents of this collection use set_parents.
The parent labels for a label. The response includes all ancestor labels.
sourcepub fn set_parents(self, input: Option<Vec<Parent>>) -> Self
pub fn set_parents(self, input: Option<Vec<Parent>>) -> Self
The parent labels for a label. The response includes all ancestor labels.