jscanify 1.3.0 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img src="docs/images/logo-full.png" height="100">
2
+ <img src="docs/images/logo-github.png" height="150">
3
3
  </p>
4
4
 
5
5
  <p align="center">
@@ -7,7 +7,7 @@
7
7
  <a href="https://cdnjs.com/libraries/jscanify"><img src="https://img.shields.io/cdnjs/v/jscanify"></a>
8
8
  <a href="https://npmjs.com/package/jscanify"><img src="https://badgen.net/npm/dw/jscanify"></a>
9
9
  <br />
10
- <a href="https://github.com/ColonelParrot/puffinsoft/blob/master/LICENSE"><img src="https://img.shields.io/github/license/puffinsoft/jscanify.svg"></a>
10
+ <a href="https://github.com/puffinsoft/jscanify/blob/master/LICENSE"><img src="https://img.shields.io/github/license/puffinsoft/jscanify.svg"></a>
11
11
  <a href="https://npmjs.com/package/jscanify"><img src="https://badgen.net/npm/v/jscanify"></a>
12
12
  </p>
13
13
 
@@ -16,21 +16,30 @@
16
16
  </p>
17
17
 
18
18
  <p align="center">
19
- Open-source pure Javascript implemented mobile document scanner. Powered with <a href="https://docs.opencv.org/3.4/d5/d10/tutorial_js_root.html">opencv.js</a><br/>
19
+ Powered with <a href="https://docs.opencv.org/3.4/d5/d10/tutorial_js_root.html">opencv.js</a><br/>
20
20
  Supports the web, NodeJS, <a href="https://github.com/ColonelParrot/react-scanify-demo">React</a>, and others.
21
- <br/><br/>
21
+ <br/>
22
22
  Available on <a href="https://www.npmjs.com/package/jscanify">npm</a> or via <a href="https://www.jsdelivr.com/package/gh/ColonelParrot/jscanify">cdn</a><br/>
23
23
  </p>
24
24
 
25
+
25
26
  **Features**:
26
27
 
27
28
  - paper detection & highlighting
28
29
  - paper scanning with distortion correction
29
30
 
30
- | Image Highlighting | Scanned Result |
31
- | -------------------------------------------- | ------------------------------------------ |
32
- | <img src="docs/images/highlight-paper1.png"> | <img src="docs/images/scanned-paper1.png"> |
33
- | <img src="docs/images/highlight-paper2.png"> | <img src="docs/images/scanned-paper2.png"> |
31
+ > [!IMPORTANT]
32
+ > 🎉 _jscanify v1.3.0_ has just been released! **Same API, better results.** See the [release](https://github.com/puffinsoft/jscanify/releases/tag/v1.3.0) to see the difference! 🎉
33
+
34
+
35
+ - 🆕 glare suppression
36
+ - 🆕 multi-colored paper support
37
+
38
+ <hr />
39
+
40
+ <img src="docs/images/github-explanation-long.png" />
41
+
42
+ <hr/>
34
43
 
35
44
  ## Quickstart
36
45
 
Binary file
Binary file
Binary file
Binary file
Binary file
package/docs/index.css CHANGED
@@ -9,7 +9,7 @@ body {
9
9
  #hero {
10
10
  width: 100%;
11
11
  overflow: hidden;
12
- background-image: url("images/galaxy.png");
12
+ background-image: url("images/galaxy.webp");
13
13
  background-size: cover;
14
14
  background-position: 0 -170px;
15
15
  background-attachment: fixed;
package/docs/index.html CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
  <body>
22
22
  <div id="hero" style="position: relative">
23
- <a href="https://github.com/ColonelParrot/jscanify" aria-label="View the library on GitHub" target="_blank" style="position: absolute; top: 0; right: 0">
23
+ <a href="https://github.com/puffinsoft/jscanify" aria-label="View the library on GitHub" target="_blank" style="position: absolute; top: 0; right: 0">
24
24
  <svg width="80" height="80" viewBox="0 0 250 250"
25
25
  style="fill:white; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true">
26
26
  <path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
@@ -32,11 +32,11 @@
32
32
  fill="black" class="octo-body"></path>
33
33
  </svg>
34
34
  </a>
35
- <img src="images/logo-full-small.png" alt="jscanify logo" />
36
- <h2>Open-source pure Javascript implemented mobile document scanner.</h2>
35
+ <img src="images/logo-full.png" alt="jscanify logo" style="height: 100px" />
36
+ <h2>the javascript document scanning library.</h2>
37
37
  <br />
38
38
  <div class="view-on">
39
- <a class="view-on-option" href="https://github.com/ColonelParrot/jscanify" target="_blank" style="margin: 10px">
39
+ <a class="view-on-option" href="https://github.com/puffinsoft/jscanify" target="_blank" style="margin: 10px">
40
40
  <svg width="16" height="16" aria-hidden="true" viewBox="0 0 16 16">
41
41
  <path fill-rule="evenodd"
42
42
  d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jscanify",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "Open-source Javascript mobile document scanner.",
5
5
  "main": "src/jscanify-node.js",
6
6
  "directories": {
@@ -1,4 +1,4 @@
1
- /*! jscanify v1.3.0 | (c) ColonelParrot and other contributors | MIT License */
1
+ /*! jscanify v1.3.2 | (c) ColonelParrot and other contributors | MIT License */
2
2
 
3
3
  const { Canvas, createCanvas, Image, ImageData } = require("canvas");
4
4
  const { JSDOM } = require("jsdom");
@@ -50,7 +50,7 @@ class jscanify {
50
50
  cv.GaussianBlur(
51
51
  imgGray,
52
52
  imgBlur,
53
- new cv.Size(5, 5),
53
+ new cv.Size(3, 3),
54
54
  0,
55
55
  0,
56
56
  cv.BORDER_DEFAULT
package/src/jscanify.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! jscanify v1.3.0 | (c) ColonelParrot and other contributors | MIT License */
1
+ /*! jscanify v1.3.2 | (c) ColonelParrot and other contributors | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === "object" && typeof module !== "undefined"
@@ -35,7 +35,7 @@
35
35
  cv.GaussianBlur(
36
36
  imgGray,
37
37
  imgBlur,
38
- new cv.Size(5, 5),
38
+ new cv.Size(3, 3),
39
39
  0,
40
40
  0,
41
41
  cv.BORDER_DEFAULT
Binary file