When taking a picture of a visit card for example of a black background we can extract the ROI (region of interest) corresponding to the visit card.
However the obtained image will likely not be a perfect rectangle and I would like a way to convert the image contained in the ROI to a perfect rectangle.
can we transform an image to correct for example the perspective ? So a method like 'transform' that would accept 4 points to describe the part to cut in the original image and a final width / height
When taking a picture of a visit card for example of a black background we can extract the ROI (region of interest) corresponding to the visit card.
However the obtained image will likely not be a perfect rectangle and I would like a way to convert the image contained in the ROI to a perfect rectangle.