DetectedObject Class
- java.
lang. Object - com.
azure. ai. vision. imageanalysis. models. DetectedObject
- com.
Implements
public final class DetectedObject
implements JsonSerializable<DetectedObject>
Represents a physical object 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 |
List<Detected |
getTags()
Get the tags property: A single-item list containing the object information. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static DetectedObject fromJson(JsonReader jsonReader)
Reads an instance of DetectedObject from the JsonReader.
Parameters:
Returns:
Throws:
getBoundingBox
public ImageBoundingBox getBoundingBox()
Get the boundingBox property: A rectangular boundary where the object was detected.
Returns:
getTags
public List
Get the tags property: A single-item list containing the object information.
Returns:
toJson
Applies to
Azure SDK for Java