Open
Description
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.
- we have an algorithm that allows to extract the minimal bounding rectangle. How to create an algorithm to create a general minimal bounding convex shape where the shape is defined as an array of Point ( ). If this seems too difficult we can reduce the shape to a convex quadrilateral
- 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