Module Values.LabelSource

Structure containing details about the detected label, including the name, detected instances, parent labels, and level of confidence.

Sourcetype nonrec t = {
  1. name : String_.t option;
    (*

    The name (label) of the object or scene.

    *)
  2. confidence : Percent.t option;
    (*

    Level of confidence.

    *)
  3. instances : Instances.t option;
    (*

    If Label represents an object, Instances contains the bounding boxes for each instance of the detected object. Bounding boxes are returned for common object labels such as people, cars, furniture, apparel or pets.

    *)
  4. parents : Parents.t option;
    (*

    The parent labels for a label. The response includes all ancestor labels.

    *)
  5. aliases : LabelAliases.t option;
    (*

    A list of potential aliases for a given label.

    *)
  6. categories : LabelCategories.t option;
    (*

    A list of the categories associated with a given label.

    *)
}
Sourceval make : ?name:??? -> ?confidence:??? -> ?instances:??? -> ?parents:??? -> ?aliases:??? -> ?categories:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Float of Percent.t | `List of [> `Structure of (string * [> `Float of Percent.t | `List of [> `Structure of (string * [> `Float of Percent.t | `Integer of UInteger.t | `String of String_.t ]) list ] list | `String of String_.t | `Structure of (string * [> `Float of Float_.t ]) list ]) list ] list | `String of String_.t ]) 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