Category Class

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

public class Category

An object describing identified category.

Method Summary

Modifier and Type Method and Description
CategoryDetail detail()

Get the detail value.

String name()

Get the name value.

double score()

Get the score value.

Category withDetail(CategoryDetail detail)

Set the detail value.

Category withName(String name)

Set the name value.

Category withScore(double score)

Set the score value.

Method Details

detail

public CategoryDetail detail()

Get the detail value.

Returns:

the detail value

name

public String name()

Get the name value.

Returns:

the name value

score

public double score()

Get the score value.

Returns:

the score value

withDetail

public Category withDetail(CategoryDetail detail)

Set the detail value.

Parameters:

detail - the detail value to set

Returns:

the Category object itself.

withName

public Category withName(String name)

Set the name value.

Parameters:

name - the name value to set

Returns:

the Category object itself.

withScore

public Category withScore(double score)

Set the score value.

Parameters:

score - the score value to set

Returns:

the Category object itself.

Applies to