<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/models/blob/v2.20.0/official/vision/ops/box_ops.py#L147-L182) |

Converts boxes to the normalized coordinates.

    tfm.vision.box_ops.normalize_boxes(
        boxes, image_shape
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `boxes` | a tensor whose last dimension is 4 representing the coordinates of boxes in ymin, xmin, ymax, xmax order. |
| `image_shape` | a list of two integers, a two-element vector or a tensor such that all but the last dimensions are `broadcastable` to `boxes`. The last dimension is 2, which represents \[height, width\]. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| `normalized_boxes` | a tensor whose shape is the same as `boxes` representing the normalized boxes. |

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | If the last dimension of boxes is not 4. |

<br />