Hi Fateh
In the above figure, find the equation of the bottom line (long width) of the rectangle highlighted in the red colour. Find the x and y coordinates that are above this line from this link. Assign empty values to the obtained x and y coordinates to remove the points above the bottom line.