Install jscanify via npm or CDN
masterYou can install jscanify using npm for Node.js/bundler environments, or include it via a CDN for direct browser usage.
Important: If using the CDN, you must also include opencv.js and load it asynchronously, as jscanify is powered by OpenCV.js.
// npm
$ npm i jscanify
import jscanify from 'jscanify'<!-- cdn -->
<script src="https://docs.opencv.org/4.7.0/opencv.js" async></script>
<!-- warning: loading OpenCV can take some time. Load asynchronously -->
<script src="https://cdn.jsdelivr.net/gh/ColonelParrot/jscanify@master/src/jscanify.min.js"></script>