Module Values.DetectLabelsImagePropertiesSource

Information about the quality and dominant colors of an input image. Quality and color information is returned for the entire image, foreground, and background.

Sourcetype nonrec t = {
  1. quality : DetectLabelsImageQuality.t option;
    (*

    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.

    *)
  2. dominantColors : DominantColors.t option;
    (*

    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).

    *)
  3. foreground : DetectLabelsImageForeground.t option;
    (*

    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.

    *)
  4. background : DetectLabelsImageBackground.t option;
    (*

    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.

    *)
}
Sourceval make : ?quality:??? -> ?dominantColors:??? -> ?foreground:??? -> ?background:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `Float of Percent.t | `Integer of UInteger.t | `String of String_.t ]) list ] list | `Structure of (string * [> `Float of Float_.t | `List of [> `Structure of (string * [> `Float of Percent.t | `Integer of UInteger.t | `String of String_.t ]) list ] list | `Structure of (string * [> `Float of Float_.t ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t