다음을 통해 공유


ImageMetadata Class

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

Implements

public final class ImageMetadata
implements JsonSerializable<ImageMetadata>

Metadata associated with the analyzed image.

Method Summary

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

Reads an instance of ImageMetadata from the JsonReader.

int getHeight()

Get the height property: The height of the image in pixels.

int getWidth()

Get the width property: The width of the image in pixels.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static ImageMetadata fromJson(JsonReader jsonReader)

Reads an instance of ImageMetadata from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ImageMetadata 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.

getHeight

public int getHeight()

Get the height property: The height of the image in pixels.

Returns:

the height value.

getWidth

public int getWidth()

Get the width property: The width of the image in pixels.

Returns:

the width value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to