def crop(img, top, left, height, width):
  """Crop the given cv2 Image.

  Args:
      img (cv2 Image): Image to be cropped. (0,0) denotes the top left corner of the image.
      top (int): Vertical component of the top left corner of the crop box.
      left (int): Horizontal component of the top left corner of the crop box.
      height (int): Height of the crop box.
      width (int): Width of the crop box.

  Returns:
      cv2 Image: Cropped image.
  """
  return img[top:top + height, left:left + width]