-
Notifications
You must be signed in to change notification settings - Fork 70
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 (https://github.com/image-js/image-js-typescript/blob/d315c630840ff22941dd3fe20f2d38dab9818bc7/src/utils/geometry/points.ts#L8). 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
Metadata
Metadata
Assignees
Labels
No labels