Delen via


CelebritiesModel Class

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

public class CelebritiesModel

An object describing possible celebrity identification.

Method Summary

Modifier and Type Method and Description
double confidence()

Get the confidence value.

FaceRectangle faceRectangle()

Get the faceRectangle value.

String name()

Get the name value.

CelebritiesModel withConfidence(double confidence)

Set the confidence value.

CelebritiesModel withFaceRectangle(FaceRectangle faceRectangle)

Set the faceRectangle value.

CelebritiesModel withName(String name)

Set the name value.

Method Details

confidence

public double confidence()

Get the confidence value.

Returns:

the confidence value

faceRectangle

public FaceRectangle faceRectangle()

Get the faceRectangle value.

Returns:

the faceRectangle value

name

public String name()

Get the name value.

Returns:

the name value

withConfidence

public CelebritiesModel withConfidence(double confidence)

Set the confidence value.

Parameters:

confidence - the confidence value to set

Returns:

the CelebritiesModel object itself.

withFaceRectangle

public CelebritiesModel withFaceRectangle(FaceRectangle faceRectangle)

Set the faceRectangle value.

Parameters:

faceRectangle - the faceRectangle value to set

Returns:

the CelebritiesModel object itself.

withName

public CelebritiesModel withName(String name)

Set the name value.

Parameters:

name - the name value to set

Returns:

the CelebritiesModel object itself.

Applies to