Today We are going to learn about how to extract area using Region of Interest pooling method. RoI widely used in object detection task.
In this article we will learn how RoI works with OpenCV in Python program. We need located the area first. Area Region of Interest (ROI) can be obtained by looking for the centroid of the image.
After we find the centroid of the image, we will make a bounding box that will be the area region of interest. To make it easier to see, lets illustrate :
Python Code for RoI
First of all we need to install OpenCV package, in here because I already install it so I don’t put it in. You can install OpenCV from this site :
Why we need to resize the image?, actually You don’t need to resize the image, but if the original image have inconsistent dimension that sometimes too long vertically or horizontally, We will lose a lot of features in the image. So we will resize the original image using interpolation method.
Today We are going to learn about how to extract area using Region of Interest pooling method. RoI widely used in object detection task. In this article we wil…