Class DetectedObject
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.vision.computervision.models.DetectedObject
-
public class DetectedObject extends Object
An object detected in an image.
-
-
Constructor Summary
Constructors Constructor Description DetectedObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
confidence()
Get the confidence value.String
objectProperty()
Get the objectProperty value.ObjectHierarchy
parent()
Get the parent value.BoundingRect
rectangle()
Get the rectangle value.DetectedObject
withConfidence(double confidence)
Set the confidence value.DetectedObject
withObjectProperty(String objectProperty)
Set the objectProperty value.DetectedObject
withParent(ObjectHierarchy parent)
Set the parent value.
-
-
-
Method Detail
-
rectangle
public BoundingRect rectangle()
Get the rectangle value.- Returns:
- the rectangle value
-
objectProperty
public String objectProperty()
Get the objectProperty value.- Returns:
- the objectProperty value
-
withObjectProperty
public DetectedObject withObjectProperty(String objectProperty)
Set the objectProperty value.- Parameters:
objectProperty
- the objectProperty value to set- Returns:
- the DetectedObject object itself.
-
confidence
public double confidence()
Get the confidence value.- Returns:
- the confidence value
-
withConfidence
public DetectedObject withConfidence(double confidence)
Set the confidence value.- Parameters:
confidence
- the confidence value to set- Returns:
- the DetectedObject object itself.
-
parent
public ObjectHierarchy parent()
Get the parent value.- Returns:
- the parent value
-
withParent
public DetectedObject withParent(ObjectHierarchy parent)
Set the parent value.- Parameters:
parent
- the parent value to set- Returns:
- the DetectedObject object itself.
-
-