AzureGroundingEnhancement Class

  • java.lang.Object
    • com.azure.ai.openai.models.AzureGroundingEnhancement

Implements

public final class AzureGroundingEnhancement
implements JsonSerializable<AzureGroundingEnhancement>

The grounding enhancement that returns the bounding box of the objects detected in the image.

Method Summary

Modifier and Type Method and Description
static AzureGroundingEnhancement fromJson(JsonReader jsonReader)

Reads an instance of AzureGroundingEnhancement from the JsonReader.

List<AzureGroundingEnhancementLine> getLines()

Get the lines property: The lines of text detected by the grounding enhancement.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static AzureGroundingEnhancement fromJson(JsonReader jsonReader)

Reads an instance of AzureGroundingEnhancement from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AzureGroundingEnhancement if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getLines

public List getLines()

Get the lines property: The lines of text detected by the grounding enhancement.

Returns:

the lines value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to