I have some images that takes using mobile phone. Is there any JavaScript library which can straighten the photo of a paper and flatten it? For example I want to create a rectan
Looks like https://www.npmjs.com/package/perspective-transform is what you are looking for.
Create functions to map points from one arbitrary quadrilateral to another and vice versa with the inverse