Skip to content

Releases: puffinsoft/jscanify

v1.4.0

18 Feb 16:52

Choose a tag to compare

Fixed the following bugs:

New features:

  • optimized extractPaper to save compute when cornerPoints is passed in. Therefore, the following two snippets are equal in performance:

Short:

const result = scanner.extractPaper(image, paperWidth, paperHeight);

Long:

const contour = scanner.findPaperContour(cv.imread(image));
const cornerPoints = scanner.getCornerPoints(contour);
const result = scanner.extractPaper(image, paperWidth, paperHeight, cornerPoints);

Previously, the longer version would take twice as long. This has since been fixed.

As always, if you have any concerns or questions, feel free to raise an issue or start a discussion post. I'm always happy to help.

v1.3.0

28 Jan 00:45

Choose a tag to compare

🎉 after nearly 2 years, it's finally here :).

I've heard your requests. My apologies for the delay - now that I've found some time, I've made some improvements:

  • improved recognition through glare suppression
  • detection support for multicolor pages (e.g., dollar bills)

The API will remain unchanged. In other words, same API, better results.

Special thanks to @andrewdcampbell for providing more test images to improve the recognition algorithm on.

Here's a side by side comparison of the improvement. For problematic images only ;).



It even works for slightly trickier cases with minimal background contrast like these:

image

That was a screenshot of the jscanify debugging tool which you can use to test how well it detects your document.

You can see for yourself by running npm test.

As always, if you have any concerns or questions, feel free to raise an issue or start a discussion post. I'm always happy to help.

v1.2.0

10 May 19:45

Choose a tag to compare

  • increase efficiency
  • remove onComplete callback on extractPaper
  • fix incorrectly named corners returned by getCornerPoints

v1.1.0

08 May 21:34

Choose a tag to compare

  • fix #1 (add full NodeJS support)

v1.0.0

15 Apr 01:35

Choose a tag to compare

Initial release