DetectedPerson Class
- java.
lang. Object - com.
azure. ai. vision. imageanalysis. models. DetectedPerson
- com.
Implements
public final class DetectedPerson
implements JsonSerializable<DetectedPerson>
Represents a person detected in an image.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Detected |
fromJson(JsonReader jsonReader)
Reads an instance of Detected |
Image |
getBoundingBox()
Get the bounding |
double |
getConfidence()
Get the confidence property: A score, in the range of 0 to 1 (inclusive), representing the confidence that this detection was accurate. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static DetectedPerson fromJson(JsonReader jsonReader)
Reads an instance of DetectedPerson from the JsonReader.
Parameters:
Returns:
Throws:
getBoundingBox
public ImageBoundingBox getBoundingBox()
Get the boundingBox property: A rectangular boundary where the person was detected.
Returns:
getConfidence
public double getConfidence()
Get the confidence property: A score, in the range of 0 to 1 (inclusive), representing the confidence that this detection was accurate. Higher values indicating higher confidence.
Returns:
toJson
Applies to
Azure SDK for Java