# tfio.experimental.image.decode_jp2

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/io/blob/v0.24.0/tensorflow_io/python/experimental/image_ops.py#L198-L210) |

Decode a JPEG2000-encoded image to a uint8 tensor.

    tfio.experimental.image.decode_jp2(
        contents, dtype=tf.uint8, name=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `contents` | A `Tensor` of type `string`. 0-D. The JPEG200-encoded image. |
| `dtype` | Data type of the decoded image. Default [`tf.uint8`](https://www.tensorflow.org/api_docs/python/tf#uint8). |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor` of type `uint8` and shape of `[height, width, 3]` (RGB). ||

<br />