<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/preprocess_ops.py#L531-L563) |

Center crop a square shape slice from the input image.

    tfm.vision.preprocess_ops.center_crop_image(
        image, center_crop_fraction: float = CENTER_CROP_FRACTION
    )

It crops a square shape slice from the image. The side of the actual crop
is 224 / 256 = 0.875 of the short side of the original image. References:
\[1\] Very Deep Convolutional Networks for Large-Scale Image Recognition
<https://arxiv.org/abs/1409.1556>
\[2\] Deep Residual Learning for Image Recognition
<https://arxiv.org/abs/1512.03385>

<br />

<br />

<br />

| ## Args ||
|---|---|
| `image` | a Tensor of shape \[height, width, 3\] representing the input image. |
| `center_crop_fraction` | a float of ratio between the side of the cropped image and the short side of the original image |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| `cropped_image` | a Tensor representing the center cropped image. |

<br />