def _crop_image_centaral(image, target_size):
    """
    Central crop of the image.

    Parameters
    ----------
    image : np.ndarray
        Image.
    target_size : (int, int)
        Size.

    Returns
    -------
    np.ndarray
        Resulting image.
    """
    h, w = image.shape[:2]
    th, tw = target_size
    ih = int(round(0.5 * (h - th)))
    jw = int(round(0.5 * (w - tw)))
    image = image[ih:(ih + th), jw:(jw + tw), :]
    shift_value = (jw, ih)
    return image, shift_value