다음을 통해 공유


DetectedObject Class

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

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.

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 Details

confidence

public double confidence()

Get the confidence value.

Returns:

the confidence value

objectProperty

public String objectProperty()

Get the objectProperty value.

Returns:

the objectProperty value

parent

public ObjectHierarchy parent()

Get the parent value.

Returns:

the parent value

rectangle

public BoundingRect rectangle()

Get the rectangle value.

Returns:

the rectangle value

withConfidence

public DetectedObject withConfidence(double confidence)

Set the confidence value.

Parameters:

confidence - the confidence value to set

Returns:

the DetectedObject object itself.

withObjectProperty

public DetectedObject withObjectProperty(String objectProperty)

Set the objectProperty value.

Parameters:

objectProperty - the objectProperty value to set

Returns:

the DetectedObject object itself.

withParent

public DetectedObject withParent(ObjectHierarchy parent)

Set the parent value.

Parameters:

parent - the parent value to set

Returns:

the DetectedObject object itself.

Applies to