perspective-transform
perspective-transform copied to clipboard
Doesn't work - alternative suggestion
I could not get this to give correct results.
Instead, this library worked well for me: https://www.npmjs.com/package/simple-homography
Note there's a mistake in the README, it should be:
let B = math.multiply(homography, A).toArray()