We’ll be doing this in a web environment. If you want to do this server side or on React, jscanify supports it too (you’ll need to check the documentation though).
Let’s import OpenCV.js and jscanify:
Quick and easy.
Now, let’s create an image
to scan.
To scan the image, we will need to initialize jscanify
, then use the extractPaper
method to get a canvas
which contains the result:
