# tflite_support.metadata_schema_py_generated.ImageSize

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L300-L334) |

## Methods

### `GetRootAs`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L303-L308)

```python
@classmethod
GetRootAs(
    buf, offset=0
)
```

### `GetRootAsImageSize`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L310-L313)

```python
@classmethod
GetRootAsImageSize(
    buf, offset=0
)
```

This method is deprecated. Please switch to GetRootAs.

### `Height`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L330-L334)

```python
Height()
```

### `ImageSizeBufferHasIdentifier`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L314-L316)

```python
@classmethod
ImageSizeBufferHasIdentifier(
    buf, offset, size_prefixed=False
)
```

### `Init`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L319-L320)

```python
Init(
    buf, pos
)
```

### `Width`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L323-L327)

```python
Width()
```