def select_region(img, boundingBox):
  """
  selection region returns a sub_image given bounding_box tuple
  (yOffset, xOffset, height, width)
  """
  yOffset = boundingBox[0]
  xOffset = boundingBox[1]
  height = boundingBox[2]
  width = boundingBox[3]

  return img[yOffset:yOffset+height, xOffset:xOffset+width]