def crop_roi(im, bbox):
  """Crops ROI
  :param im: (np.ndarray) image BGR
  :param bbox: (BBox)
  :returns (np.ndarray) BGR image ROi
  """
  dim = im.shape[:2][::-1]
  x1, y1, x2, y2 = bbox.xyxy_int
  im_roi = im[y1:y2, x1:x2]
  return im_roi