DetectedObject Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. vision. computervision. models. DetectedObject
- com.
public class DetectedObject
An object detected in an image.
Method Summary
Modifier and Type | Method and Description |
---|---|
double |
confidence()
Get the confidence value. |
String |
objectProperty()
Get the objectProperty value. |
Object |
parent()
Get the parent value. |
Bounding |
rectangle()
Get the rectangle value. |
Detected |
withConfidence(double confidence)
Set the confidence value. |
Detected |
withObjectProperty(String objectProperty)
Set the objectProperty value. |
Detected |
withParent(ObjectHierarchy parent)
Set the parent value. |
Method Details
confidence
public double confidence()
Get the confidence value.
Returns:
objectProperty
public String objectProperty()
Get the objectProperty value.
Returns:
parent
public ObjectHierarchy parent()
Get the parent value.
Returns:
rectangle
public BoundingRect rectangle()
Get the rectangle value.
Returns:
withConfidence
public DetectedObject withConfidence(double confidence)
Set the confidence value.
Parameters:
Returns:
withObjectProperty
public DetectedObject withObjectProperty(String objectProperty)
Set the objectProperty value.
Parameters:
Returns:
withParent
public DetectedObject withParent(ObjectHierarchy parent)
Set the parent value.
Parameters:
Returns:
Applies to
Azure SDK for Java