<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/python/task/processor/proto/segmentations.proto) |

2D-array representing the confidence mask in row major order.

    tflite_support.task.processor.ConfidenceMask(
        value: np.ndarray
    )

For each pixel, the value indicates the prediction confidence usually
in the \[0, 1\] range where higher values represent a stronger confidence.
Ultimately this is model specific, and other range of values might be used.

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `value` | A NumPy 2D-array indicating the prediction confidence values usually in the range \[0, 1\]. |

<br />

## Methods

### `create_from_pb2`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/python/task/processor/proto/segmentations.proto)

    @classmethod
    create_from_pb2(
        pb2_obj: _ConfidenceMaskProto, height: int, width: int
    ) -> 'ConfidenceMask'

Creates a `ConfidenceMask` object from the given protobuf and size.

### `to_pb2`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/python/task/processor/proto/segmentations.proto)

    to_pb2() -> _ConfidenceMaskProto

Generates a protobuf object to pass to the C++ layer.

### `__eq__`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/python/task/processor/proto/segmentations.proto)

    __eq__(
        other: Any
    ) -> bool

Checks if this object is equal to the given object.

<br />

<br />

<br />

| Args ||
|---|---|
| `other` | The object to be compared with. |

<br />

<br />

<br />

<br />

| Returns ||
|---|---|
| True if the objects are equal. ||

<br />