#[non_exhaustive]pub struct DetectLabelsOutput {
pub labels: Option<Vec<Label>>,
pub orientation_correction: Option<OrientationCorrection>,
pub label_model_version: Option<String>,
pub image_properties: Option<DetectLabelsImageProperties>,
/* private fields */
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.labels: Option<Vec<Label>>An array of labels for the real-world objects detected.
orientation_correction: Option<OrientationCorrection>The value of OrientationCorrection is always null.
If the input image is in .jpeg format, it might contain exchangeable image file format (Exif) metadata that includes the image's orientation. Amazon Rekognition uses this orientation information to perform image correction. The bounding box coordinates are translated to represent object locations after the orientation information in the Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.
Amazon Rekognition doesn’t perform image correction for images in .png format and .jpeg images without orientation information in the image Exif metadata. The bounding box coordinates aren't translated and represent the object locations before the image is rotated.
label_model_version: Option<String>Version number of the label detection model that was used to detect labels.
image_properties: Option<DetectLabelsImageProperties>Information about the properties of the input image, such as brightness, sharpness, contrast, and dominant colors.
Implementations§
source§impl DetectLabelsOutput
impl DetectLabelsOutput
sourcepub fn labels(&self) -> &[Label]
pub fn labels(&self) -> &[Label]
An array of labels for the real-world objects detected.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .labels.is_none().
sourcepub fn orientation_correction(&self) -> Option<&OrientationCorrection>
pub fn orientation_correction(&self) -> Option<&OrientationCorrection>
The value of OrientationCorrection is always null.
If the input image is in .jpeg format, it might contain exchangeable image file format (Exif) metadata that includes the image's orientation. Amazon Rekognition uses this orientation information to perform image correction. The bounding box coordinates are translated to represent object locations after the orientation information in the Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.
Amazon Rekognition doesn’t perform image correction for images in .png format and .jpeg images without orientation information in the image Exif metadata. The bounding box coordinates aren't translated and represent the object locations before the image is rotated.
sourcepub fn label_model_version(&self) -> Option<&str>
pub fn label_model_version(&self) -> Option<&str>
Version number of the label detection model that was used to detect labels.
sourcepub fn image_properties(&self) -> Option<&DetectLabelsImageProperties>
pub fn image_properties(&self) -> Option<&DetectLabelsImageProperties>
Information about the properties of the input image, such as brightness, sharpness, contrast, and dominant colors.
source§impl DetectLabelsOutput
impl DetectLabelsOutput
sourcepub fn builder() -> DetectLabelsOutputBuilder
pub fn builder() -> DetectLabelsOutputBuilder
Creates a new builder-style object to manufacture DetectLabelsOutput.
Trait Implementations§
source§impl Clone for DetectLabelsOutput
impl Clone for DetectLabelsOutput
source§fn clone(&self) -> DetectLabelsOutput
fn clone(&self) -> DetectLabelsOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DetectLabelsOutput
impl Debug for DetectLabelsOutput
source§impl PartialEq for DetectLabelsOutput
impl PartialEq for DetectLabelsOutput
source§fn eq(&self, other: &DetectLabelsOutput) -> bool
fn eq(&self, other: &DetectLabelsOutput) -> bool
self and other values to be equal, and is used
by ==.source§impl RequestId for DetectLabelsOutput
impl RequestId for DetectLabelsOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.