        return_scale (bool, optional): Whether to return ``w_scale`` and
            ``h_scale``. Default: ``False``.

    Returns:
        :obj:`np.ndarray` | tuple: The resized image (and scales).
    """
    out_img = cv2.resize(img, size, interpolation=_INTERP_CODES[interpolation])

    if return_scale:
        h, w = img.shape[:2]

        w_scale = size[0] / w