Interface DetectLabelsImageForeground.Builder

    • Method Detail

      • quality

        DetectLabelsImageForeground.Builder quality​(DetectLabelsImageQuality quality)

        The quality of the image foreground as defined by brightness and sharpness.

        Parameters:
        quality - The quality of the image foreground as defined by brightness and sharpness.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dominantColors

        DetectLabelsImageForeground.Builder dominantColors​(Collection<DominantColor> dominantColors)

        The dominant colors found in the foreground of an image, defined with RGB values, CSS color name, simplified color name, and PixelPercentage (the percentage of image pixels that have a particular color).

        Parameters:
        dominantColors - The dominant colors found in the foreground of an image, defined with RGB values, CSS color name, simplified color name, and PixelPercentage (the percentage of image pixels that have a particular color).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dominantColors

        DetectLabelsImageForeground.Builder dominantColors​(DominantColor... dominantColors)

        The dominant colors found in the foreground of an image, defined with RGB values, CSS color name, simplified color name, and PixelPercentage (the percentage of image pixels that have a particular color).

        Parameters:
        dominantColors - The dominant colors found in the foreground of an image, defined with RGB values, CSS color name, simplified color name, and PixelPercentage (the percentage of image pixels that have a particular color).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dominantColors

        DetectLabelsImageForeground.Builder dominantColors​(Consumer<DominantColor.Builder>... dominantColors)

        The dominant colors found in the foreground of an image, defined with RGB values, CSS color name, simplified color name, and PixelPercentage (the percentage of image pixels that have a particular color).

        This is a convenience method that creates an instance of the DominantColor.Builder avoiding the need to create one manually via DominantColor.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #dominantColors(List).

        Parameters:
        dominantColors - a consumer that will call methods on DominantColor.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #dominantColors(java.util.Collection)