def __init__(self, size, interpolation=cv2.INTER_CUBIC): self.size = size self.interpolation = interpolation