Corners identification with OpenCV.js

Thanks for looking at this!
OpenCV.js sas norm, reduce, approxPolyDP and convexHull
But it’s missing warpPerspective and findNonZero

My end goal is definitely to get a fixed size rectangle at the end… So I will try crackwitz’s suggestion and try to build my own version of OpenCV with those functions enabled. No idea if it’s doable but the only wayt to know is to try! And then I will be able to try your code. Do you have the warpPerspective call to be added at the end?