AdultInfo Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. vision. computervision. models. AdultInfo
- com.
public class AdultInfo
An object describing whether the image contains adult-oriented content and/or is racy.
Method Summary
Modifier and Type | Method and Description |
---|---|
double |
adultScore()
Get the adultScore value. |
double |
goreScore()
Get the goreScore value. |
boolean |
isAdultContent()
Get the isAdultContent value. |
boolean |
isGoryContent()
Get the isGoryContent value. |
boolean |
isRacyContent()
Get the isRacyContent value. |
double |
racyScore()
Get the racyScore value. |
Adult |
withAdultScore(double adultScore)
Set the adultScore value. |
Adult |
withGoreScore(double goreScore)
Set the goreScore value. |
Adult |
withIsAdultContent(boolean isAdultContent)
Set the isAdultContent value. |
Adult |
withIsGoryContent(boolean isGoryContent)
Set the isGoryContent value. |
Adult |
withIsRacyContent(boolean isRacyContent)
Set the isRacyContent value. |
Adult |
withRacyScore(double racyScore)
Set the racyScore value. |
Method Details
adultScore
public double adultScore()
Get the adultScore value.
Returns:
goreScore
public double goreScore()
Get the goreScore value.
Returns:
isAdultContent
public boolean isAdultContent()
Get the isAdultContent value.
Returns:
isGoryContent
public boolean isGoryContent()
Get the isGoryContent value.
Returns:
isRacyContent
public boolean isRacyContent()
Get the isRacyContent value.
Returns:
racyScore
public double racyScore()
Get the racyScore value.
Returns:
withAdultScore
public AdultInfo withAdultScore(double adultScore)
Set the adultScore value.
Parameters:
Returns:
withGoreScore
public AdultInfo withGoreScore(double goreScore)
Set the goreScore value.
Parameters:
Returns:
withIsAdultContent
public AdultInfo withIsAdultContent(boolean isAdultContent)
Set the isAdultContent value.
Parameters:
Returns:
withIsGoryContent
public AdultInfo withIsGoryContent(boolean isGoryContent)
Set the isGoryContent value.
Parameters:
Returns:
withIsRacyContent
public AdultInfo withIsRacyContent(boolean isRacyContent)
Set the isRacyContent value.
Parameters:
Returns:
withRacyScore
public AdultInfo withRacyScore(double racyScore)
Set the racyScore value.
Parameters:
Returns:
Applies to
Azure SDK for Java