<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/google-ai-edge/mediapipe/blob/master/mediapipe/tasks/python/vision/core/image_processing_options.py#L25-L57) |

Options for image processing.

    mp.tasks.vision.ImageProcessingOptions(
        region_of_interest: Optional[rect_module.RectF] = None,
        rotation_degrees: int = 0
    )

If both region-of-interest and rotation are specified, the crop around the
region-of-interest is extracted first, then the specified rotation is applied
to the crop.

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `region_of_interest` | The optional region-of-interest to crop from the image. If not specified, the full image is used. Coordinates must be in \[0,1\] with 'left' \< 'right' and 'top' \< 'bottom'. |
| `rotation_degrees` | The rotation to apply to the image (or cropped region-of-interest), in degrees clockwise. The rotation must be a multiple (positive or negative) of 90°. |

<br />

## Methods

### `to_ctypes`

[View source](https://github.com/google-ai-edge/mediapipe/blob/master/mediapipe/tasks/python/vision/core/image_processing_options.py#L44-L57)

    to_ctypes() -> image_processing_options_c_module.MpImageProcessingOptionsC

Generates a MpImageProcessingOptionsC object.

### `__eq__`

    __eq__(
        other
    )

Return self==value.

<br />

<br />

<br />

| ## Class Variables ||
|---|---|
| region_of_interest | `None` |
| rotation_degrees | `0` |

<br />