class_docstr: Resize image to a target size
docstr: Args:
      shape: (h, w) tuple or a int
      interp: cv2 interpolation method
docstr_tok: ["Args",":","shape",":","(","h",",","w",")","tuple","or","a","int","interp",":","cv2","interpolation","method"]
code: def __init__(self, shape, interp=cv2.INTER_LINEAR):
      """
      Args:
          shape: (h, w) tuple or a int
          interp: cv2 interpolation method
      """
      shape = tuple(shape2d(shape))
      self._init(locals())
  
imports: import cv2
  from ...utils import logger
  from ...utils.argtools import shape2d
  from .base import ImageAugmentor
  from .transform import ResizeTransform, NoOpTransform, FlipTransform, TransposeTransform
label_desc: Use image node_id 1 to create a new Resize object from inherited base classes: ImageAugmentor with example: obj = Resize(shape, interp)