AdultInfo Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.vision.computervision.models.AdultInfo

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.

AdultInfo withAdultScore(double adultScore)

Set the adultScore value.

AdultInfo withGoreScore(double goreScore)

Set the goreScore value.

AdultInfo withIsAdultContent(boolean isAdultContent)

Set the isAdultContent value.

AdultInfo withIsGoryContent(boolean isGoryContent)

Set the isGoryContent value.

AdultInfo withIsRacyContent(boolean isRacyContent)

Set the isRacyContent value.

AdultInfo withRacyScore(double racyScore)

Set the racyScore value.

Method Details

adultScore

public double adultScore()

Get the adultScore value.

Returns:

the adultScore value

goreScore

public double goreScore()

Get the goreScore value.

Returns:

the goreScore value

isAdultContent

public boolean isAdultContent()

Get the isAdultContent value.

Returns:

the isAdultContent value

isGoryContent

public boolean isGoryContent()

Get the isGoryContent value.

Returns:

the isGoryContent value

isRacyContent

public boolean isRacyContent()

Get the isRacyContent value.

Returns:

the isRacyContent value

racyScore

public double racyScore()

Get the racyScore value.

Returns:

the racyScore value

withAdultScore

public AdultInfo withAdultScore(double adultScore)

Set the adultScore value.

Parameters:

adultScore - the adultScore value to set

Returns:

the AdultInfo object itself.

withGoreScore

public AdultInfo withGoreScore(double goreScore)

Set the goreScore value.

Parameters:

goreScore - the goreScore value to set

Returns:

the AdultInfo object itself.

withIsAdultContent

public AdultInfo withIsAdultContent(boolean isAdultContent)

Set the isAdultContent value.

Parameters:

isAdultContent - the isAdultContent value to set

Returns:

the AdultInfo object itself.

withIsGoryContent

public AdultInfo withIsGoryContent(boolean isGoryContent)

Set the isGoryContent value.

Parameters:

isGoryContent - the isGoryContent value to set

Returns:

the AdultInfo object itself.

withIsRacyContent

public AdultInfo withIsRacyContent(boolean isRacyContent)

Set the isRacyContent value.

Parameters:

isRacyContent - the isRacyContent value to set

Returns:

the AdultInfo object itself.

withRacyScore

public AdultInfo withRacyScore(double racyScore)

Set the racyScore value.

Parameters:

racyScore - the racyScore value to set

Returns:

the AdultInfo object itself.

Applies to