Class Category
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.vision.computervision.models.Category
-
public class Category extends Object
An object describing identified category.
-
-
Constructor Summary
Constructors Constructor Description Category()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 Detail
-
name
public String name()
Get the name value.- Returns:
- the name value
-
withName
public Category withName(String name)
Set the name value.- Parameters:
name
- the name value to set- Returns:
- the Category object itself.
-
score
public double score()
Get the score value.- Returns:
- the score value
-
withScore
public Category withScore(double score)
Set the score value.- Parameters:
score
- the score value to set- Returns:
- the Category object itself.
-
detail
public CategoryDetail detail()
Get the detail value.- Returns:
- the detail value
-
withDetail
public Category withDetail(CategoryDetail detail)
Set the detail value.- Parameters:
detail
- the detail value to set- Returns:
- the Category object itself.
-
-