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
JSFeat can do that for you. There even is an example for perspective distortion. You'll have to add/compute the source and destination points yourself.