def METHOD_NAME(self, img, roi_xyxy):
    ### cook raw image => sub-img within ROI of parent object
    roi_xyxy = roi_xyxy.astype(int)
    img_resize, img_pad_size, pad_left, pad_top = \
        crop_pad_resize(img, roi_xyxy, self.dsize)
    outputs, _ = self.inference(img_resize)
    if outputs is None:
        return None
    ### map bbox coords back to raw image
    bboxes_xyxy = outputs[:, : 4]
    outputs[:, : 4] = reverse_crop_pad_resize(
        bboxes_xyxy,
        img_pad_size,
        self.dsize,
        pad_left,
        pad_top,
        roi_xyxy)
    return outputs