tf.io.decode_bmp

Decode the first frame of a BMP-encoded image to a uint8 tensor.

tf.io.decode_bmp(
    contents, channels=0, name=None
)

The attr channels indicates the desired number of color channels for the decoded image.

Accepted values are:

Args:

Returns:

A Tensor of type uint8.