jscanify logo

Open-source pure Javascript implemented mobile document scanner.

View on Github View on npm
jscanify is an open-source pure Javascript implemented mobile document scanner designed to run in any Javascript environment for free.

jscanify is capable of detecting & highlighting documents in an image, as well as undistorting it. It is fast and easy to learn.

It can run in the browser or on a server with NodeJS. It supports React too!


Select an image below to scan

jscanify test image 1
jscanify test image 2
Scan results will appear here


$ npm i jscanify
import jscanify from 'jscanify'
<script src="https://docs.opencv.org/4.7.0/opencv.js" async></script>
<script src="https://cdn.jsdelivr.net/gh/ColonelParrot/jscanify@master/src/jscanify.min.js"></script>


const scanner = new jscanify();
const paperWidth = 500;
const paperHeight = 1000;
image.onload = function () {
  const resultCanvas = scanner.extractPaper(image, paperWidth, paperHeight);
It's that easy! Come check out the documentation!