Releases: puffinsoft/jscanify
v1.4.0
Fixed the following bugs:
New features:
- optimized
extractPaperto save compute whencornerPointsis 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
🎉 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:
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
- increase efficiency
- remove
onCompletecallback onextractPaper - fix incorrectly named corners returned by
getCornerPoints
v1.1.0
v1.0.0
Initial release
