Emotion Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. vision. faceapi. models. Emotion
- com.
public class Emotion
Properties describing facial emotion in form of confidence ranging from 0 to 1.
Method Summary
Modifier and Type | Method and Description |
---|---|
double |
anger()
Get the anger value. |
double |
contempt()
Get the contempt value. |
double |
disgust()
Get the disgust value. |
double |
fear()
Get the fear value. |
double |
happiness()
Get the happiness value. |
double |
neutral()
Get the neutral value. |
double |
sadness()
Get the sadness value. |
double |
surprise()
Get the surprise value. |
Emotion |
withAnger(double anger)
Set the anger value. |
Emotion |
withContempt(double contempt)
Set the contempt value. |
Emotion |
withDisgust(double disgust)
Set the disgust value. |
Emotion |
withFear(double fear)
Set the fear value. |
Emotion |
withHappiness(double happiness)
Set the happiness value. |
Emotion |
withNeutral(double neutral)
Set the neutral value. |
Emotion |
withSadness(double sadness)
Set the sadness value. |
Emotion |
withSurprise(double surprise)
Set the surprise value. |
Method Details
anger
public double anger()
Get the anger value.
Returns:
contempt
public double contempt()
Get the contempt value.
Returns:
disgust
public double disgust()
Get the disgust value.
Returns:
fear
public double fear()
Get the fear value.
Returns:
happiness
public double happiness()
Get the happiness value.
Returns:
neutral
public double neutral()
Get the neutral value.
Returns:
sadness
public double sadness()
Get the sadness value.
Returns:
surprise
public double surprise()
Get the surprise value.
Returns:
withAnger
public Emotion withAnger(double anger)
Set the anger value.
Parameters:
Returns:
withContempt
public Emotion withContempt(double contempt)
Set the contempt value.
Parameters:
Returns:
withDisgust
public Emotion withDisgust(double disgust)
Set the disgust value.
Parameters:
Returns:
withFear
public Emotion withFear(double fear)
Set the fear value.
Parameters:
Returns:
withHappiness
public Emotion withHappiness(double happiness)
Set the happiness value.
Parameters:
Returns:
withNeutral
public Emotion withNeutral(double neutral)
Set the neutral value.
Parameters:
Returns:
withSadness
public Emotion withSadness(double sadness)
Set the sadness value.
Parameters:
Returns:
withSurprise
public Emotion withSurprise(double surprise)
Set the surprise value.
Parameters:
Returns:
Applies to
Azure SDK for Java