|View source on GitHub|
Center crop a square shape slice from the input image.
tfm.vision.preprocess_ops.center_crop_image_v2( image_bytes, image_shape, 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:  Very Deep Convolutional Networks for Large-Scale Image Recognition https://arxiv.org/abs/1409.1556  Deep Residual Learning for Image Recognition https://arxiv.org/abs/1512.03385
This is a faster version of
center_crop_image which takes the original
image bytes and image size as the inputs, and partially decode the JPEG
bytes according to the center crop.
||a Tensor representing the center cropped image.|