#[non_exhaustive]pub struct DetectAnomalyResultBuilder { /* private fields */ }Expand description
A builder for DetectAnomalyResult.
Implementations§
source§impl DetectAnomalyResultBuilder
impl DetectAnomalyResultBuilder
sourcepub fn source(self, input: ImageSource) -> Self
pub fn source(self, input: ImageSource) -> Self
The source of the image that was analyzed. direct means that the images was supplied from the local computer. No other values are supported.
sourcepub fn set_source(self, input: Option<ImageSource>) -> Self
pub fn set_source(self, input: Option<ImageSource>) -> Self
The source of the image that was analyzed. direct means that the images was supplied from the local computer. No other values are supported.
sourcepub fn get_source(&self) -> &Option<ImageSource>
pub fn get_source(&self) -> &Option<ImageSource>
The source of the image that was analyzed. direct means that the images was supplied from the local computer. No other values are supported.
sourcepub fn is_anomalous(self, input: bool) -> Self
pub fn is_anomalous(self, input: bool) -> Self
True if Amazon Lookout for Vision classifies the image as containing an anomaly, otherwise false.
sourcepub fn set_is_anomalous(self, input: Option<bool>) -> Self
pub fn set_is_anomalous(self, input: Option<bool>) -> Self
True if Amazon Lookout for Vision classifies the image as containing an anomaly, otherwise false.
sourcepub fn get_is_anomalous(&self) -> &Option<bool>
pub fn get_is_anomalous(&self) -> &Option<bool>
True if Amazon Lookout for Vision classifies the image as containing an anomaly, otherwise false.
sourcepub fn confidence(self, input: f32) -> Self
pub fn confidence(self, input: f32) -> Self
The confidence that Lookout for Vision has in the accuracy of the classification in IsAnomalous.
sourcepub fn set_confidence(self, input: Option<f32>) -> Self
pub fn set_confidence(self, input: Option<f32>) -> Self
The confidence that Lookout for Vision has in the accuracy of the classification in IsAnomalous.
sourcepub fn get_confidence(&self) -> &Option<f32>
pub fn get_confidence(&self) -> &Option<f32>
The confidence that Lookout for Vision has in the accuracy of the classification in IsAnomalous.
sourcepub fn anomalies(self, input: Anomaly) -> Self
pub fn anomalies(self, input: Anomaly) -> Self
Appends an item to anomalies.
To override the contents of this collection use set_anomalies.
If the model is an image segmentation model, Anomalies contains a list of anomaly types found in the image. There is one entry for each type of anomaly found (even if multiple instances of an anomaly type exist on the image). The first element in the list is always an anomaly type representing the image background ('background') and shouldn't be considered an anomaly. Amazon Lookout for Vision automatically add the background anomaly type to the response, and you don't need to declare a background anomaly type in your dataset.
If the list has one entry ('background'), no anomalies were found on the image.
An image classification model doesn't return an Anomalies list.
sourcepub fn set_anomalies(self, input: Option<Vec<Anomaly>>) -> Self
pub fn set_anomalies(self, input: Option<Vec<Anomaly>>) -> Self
If the model is an image segmentation model, Anomalies contains a list of anomaly types found in the image. There is one entry for each type of anomaly found (even if multiple instances of an anomaly type exist on the image). The first element in the list is always an anomaly type representing the image background ('background') and shouldn't be considered an anomaly. Amazon Lookout for Vision automatically add the background anomaly type to the response, and you don't need to declare a background anomaly type in your dataset.
If the list has one entry ('background'), no anomalies were found on the image.
An image classification model doesn't return an Anomalies list.
sourcepub fn get_anomalies(&self) -> &Option<Vec<Anomaly>>
pub fn get_anomalies(&self) -> &Option<Vec<Anomaly>>
If the model is an image segmentation model, Anomalies contains a list of anomaly types found in the image. There is one entry for each type of anomaly found (even if multiple instances of an anomaly type exist on the image). The first element in the list is always an anomaly type representing the image background ('background') and shouldn't be considered an anomaly. Amazon Lookout for Vision automatically add the background anomaly type to the response, and you don't need to declare a background anomaly type in your dataset.
If the list has one entry ('background'), no anomalies were found on the image.
An image classification model doesn't return an Anomalies list.
sourcepub fn anomaly_mask(self, input: Blob) -> Self
pub fn anomaly_mask(self, input: Blob) -> Self
If the model is an image segmentation model, AnomalyMask contains pixel masks that covers all anomaly types found on the image. Each anomaly type has a different mask color. To map a color to an anomaly type, see the color field of the PixelAnomaly object.
An image classification model doesn't return an Anomalies list.
sourcepub fn set_anomaly_mask(self, input: Option<Blob>) -> Self
pub fn set_anomaly_mask(self, input: Option<Blob>) -> Self
If the model is an image segmentation model, AnomalyMask contains pixel masks that covers all anomaly types found on the image. Each anomaly type has a different mask color. To map a color to an anomaly type, see the color field of the PixelAnomaly object.
An image classification model doesn't return an Anomalies list.
sourcepub fn get_anomaly_mask(&self) -> &Option<Blob>
pub fn get_anomaly_mask(&self) -> &Option<Blob>
If the model is an image segmentation model, AnomalyMask contains pixel masks that covers all anomaly types found on the image. Each anomaly type has a different mask color. To map a color to an anomaly type, see the color field of the PixelAnomaly object.
An image classification model doesn't return an Anomalies list.
sourcepub fn build(self) -> DetectAnomalyResult
pub fn build(self) -> DetectAnomalyResult
Consumes the builder and constructs a DetectAnomalyResult.
Trait Implementations§
source§impl Clone for DetectAnomalyResultBuilder
impl Clone for DetectAnomalyResultBuilder
source§fn clone(&self) -> DetectAnomalyResultBuilder
fn clone(&self) -> DetectAnomalyResultBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DetectAnomalyResultBuilder
impl Debug for DetectAnomalyResultBuilder
source§impl Default for DetectAnomalyResultBuilder
impl Default for DetectAnomalyResultBuilder
source§fn default() -> DetectAnomalyResultBuilder
fn default() -> DetectAnomalyResultBuilder
source§impl PartialEq for DetectAnomalyResultBuilder
impl PartialEq for DetectAnomalyResultBuilder
source§fn eq(&self, other: &DetectAnomalyResultBuilder) -> bool
fn eq(&self, other: &DetectAnomalyResultBuilder) -> bool
self and other values to be equal, and is used
by ==.