Module Values.EmotionSource

The API returns a prediction of an emotion based on a person's facial expressions, along with the confidence level for the predicted emotion. It is not a determination of the person’s internal emotional state and should not be used in such a way. For example, a person pretending to have a sad face might not be sad emotionally. The API is not intended to be used, and you may not use it, in a manner that violates the EU Artificial Intelligence Act or any other applicable law.

Sourcetype nonrec t = {
  1. type_ : EmotionName.t option;
    (*

    Type of emotion detected.

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

    Level of confidence in the determination.

    *)
}
Sourceval make : ?type_:??? -> ?confidence:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Float of Percent.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