#[non_exhaustive]pub struct DetectLabelsImageProperties {
pub quality: Option<DetectLabelsImageQuality>,
pub dominant_colors: Option<Vec<DominantColor>>,
pub foreground: Option<DetectLabelsImageForeground>,
pub background: Option<DetectLabelsImageBackground>,
}Expand description
Information about the quality and dominant colors of an input image. Quality and color information is returned for the entire image, foreground, and background.
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.quality: Option<DetectLabelsImageQuality>Information about the quality of the image foreground as defined by brightness, sharpness, and contrast. The higher the value the greater the brightness, sharpness, and contrast respectively.
dominant_colors: Option<Vec<DominantColor>>Information about the dominant colors found in an image, described with RGB values, CSS color name, simplified color name, and PixelPercentage (the percentage of image pixels that have a particular color).
foreground: Option<DetectLabelsImageForeground>Information about the properties of an image’s foreground, including the foreground’s quality and dominant colors, including the quality and dominant colors of the image.
background: Option<DetectLabelsImageBackground>Information about the properties of an image’s background, including the background’s quality and dominant colors, including the quality and dominant colors of the image.
Implementations§
source§impl DetectLabelsImageProperties
impl DetectLabelsImageProperties
sourcepub fn quality(&self) -> Option<&DetectLabelsImageQuality>
pub fn quality(&self) -> Option<&DetectLabelsImageQuality>
Information about the quality of the image foreground as defined by brightness, sharpness, and contrast. The higher the value the greater the brightness, sharpness, and contrast respectively.
sourcepub fn dominant_colors(&self) -> &[DominantColor]
pub fn dominant_colors(&self) -> &[DominantColor]
Information about the dominant colors found in an image, described with RGB values, CSS color name, simplified color name, and PixelPercentage (the percentage of image pixels that have a particular color).
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .dominant_colors.is_none().
sourcepub fn foreground(&self) -> Option<&DetectLabelsImageForeground>
pub fn foreground(&self) -> Option<&DetectLabelsImageForeground>
Information about the properties of an image’s foreground, including the foreground’s quality and dominant colors, including the quality and dominant colors of the image.
sourcepub fn background(&self) -> Option<&DetectLabelsImageBackground>
pub fn background(&self) -> Option<&DetectLabelsImageBackground>
Information about the properties of an image’s background, including the background’s quality and dominant colors, including the quality and dominant colors of the image.
source§impl DetectLabelsImageProperties
impl DetectLabelsImageProperties
sourcepub fn builder() -> DetectLabelsImagePropertiesBuilder
pub fn builder() -> DetectLabelsImagePropertiesBuilder
Creates a new builder-style object to manufacture DetectLabelsImageProperties.
Trait Implementations§
source§impl Clone for DetectLabelsImageProperties
impl Clone for DetectLabelsImageProperties
source§fn clone(&self) -> DetectLabelsImageProperties
fn clone(&self) -> DetectLabelsImageProperties
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DetectLabelsImageProperties
impl Debug for DetectLabelsImageProperties
source§impl PartialEq for DetectLabelsImageProperties
impl PartialEq for DetectLabelsImageProperties
source§fn eq(&self, other: &DetectLabelsImageProperties) -> bool
fn eq(&self, other: &DetectLabelsImageProperties) -> bool
self and other values to be equal, and is used
by ==.