다음을 통해 공유


DetectedTextBlock Class

  • java.lang.Object
    • com.azure.ai.vision.imageanalysis.models.DetectedTextBlock

Implements

public final class DetectedTextBlock
implements JsonSerializable<DetectedTextBlock>

Represents a single block of detected text in the image.

Method Summary

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

Reads an instance of DetectedTextBlock from the JsonReader.

List<DetectedTextLine> getLines()

Get the lines property: A list of text lines in this block.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static DetectedTextBlock fromJson(JsonReader jsonReader)

Reads an instance of DetectedTextBlock from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DetectedTextBlock 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: A list of text lines in this block.

Returns:

the lines value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to