1
$\begingroup$

As English is not my native language, I have some hard time understanding the following sentence:

Regardless of the size or aspect ratio of the candidate region, we warp all pixels in a tight bounding box around it to the required size. Prior to warping, we dilate the tight bounding box so that at the warped size there are exactly p pixels of warped image context around the original box (we use p = 16).

This is from the R-CNN paper. I already extracted the ROI, but now, they say that the input of the CNN should be 227 x 227, but a lot of my ROIs are much smaller. How can I deal with it?

$\endgroup$
1
  • 1
    $\begingroup$ Hello. I am still not sure if your question was theoretical/conceptual or practical (programming issue), but I would like to note that programming issues are generally off-topic here. See ai.stackexchange.com/help/on-topic for more details. $\endgroup$
    – nbro
    Jun 21, 2021 at 23:26

1 Answer 1

2
$\begingroup$

It is actually very easy, I didn't know the solution would be that simple. With opencv, you can do :

resized_roi= cv2.resize(roi, (224,224)) 

and that's it :]

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .