scanic 1.1.1 โ 1.3.0
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 +17 -17
- package/dist/scanic.js +1 -2670
- package/dist/scanic.umd.cjs +1 -1
- package/package.json +26 -6
- package/src/scanic.d.ts +98 -7
package/README.md
CHANGED
|
@@ -7,17 +7,19 @@
|
|
|
7
7
|
<p align="center">
|
|
8
8
|
<a href="https://npmjs.com/package/scanic"><img src="https://badgen.net/npm/dw/scanic"></a>
|
|
9
9
|
<br />
|
|
10
|
-
<a href="https://github.com/marquaye/scanic/blob/
|
|
10
|
+
<a href="https://github.com/marquaye/scanic/blob/main/LICENSE"><img src="https://img.shields.io/github/license/marquaye/scanic.svg"></a>
|
|
11
11
|
<a href="https://npmjs.com/package/scanic"><img src="https://badgen.net/npm/v/scanic"></a>
|
|
12
|
+
<a href="https://bundlephobia.com/package/scanic"><img src="https://img.shields.io/bundlephobia/minzip/scanic"></a>
|
|
13
|
+
<a href="https://marquaye.github.io/scanic"><img src="https://img.shields.io/badge/docs-online-6366f1"></a>
|
|
12
14
|
</p>
|
|
13
15
|
|
|
14
|
-
# Scanic
|
|
16
|
+
# Scanic
|
|
15
17
|
|
|
16
18
|
**Ultra-fast, production-ready document scanning for the modern Web.**
|
|
17
19
|
|
|
18
20
|
Scanic is a high-performance document scanner library that brings professional-grade document edge detection and perspective correction to the browser and Node.js. By combining **Rust-powered WebAssembly** for pixel crunching and **GPU-accelerated Canvas** for image warping, Scanic delivers near-native performance (~10ms transforms) with a tiny footprint.
|
|
19
21
|
|
|
20
|
-
[**Live Demo**](https://marquaye.github.io/scanic) | [**Framework Examples**](#๐ป-framework-examples) | [**API Reference**](
|
|
22
|
+
[**Documentation**](https://marquaye.github.io/scanic) | [**Live Demo**](https://marquaye.github.io/scanic/demo/) | [**Framework Examples**](#๐ป-framework-examples) | [**API Reference**](https://marquaye.github.io/scanic/api/reference)
|
|
21
23
|
|
|
22
24
|
---
|
|
23
25
|
|
|
@@ -41,14 +43,17 @@ Traditional web scanning solutions often force a trade-off:
|
|
|
41
43
|
- ๐ฆ **WASM Core**: High-performance Gaussian Blur, Canny Edge Detection, and Dilation.
|
|
42
44
|
- ๐ ๏ธ **Modern API**: Clean, Promise-based API with full **TypeScript** support.
|
|
43
45
|
- ๐ฆ **Featherweight**: Under **100KB** total size (gzipped).
|
|
46
|
+
- ๐ค **Optional ML detector**: opt into a neural corner detector for hard photos โ lazy-loaded, zero cost to classical users. See the [ML Detection guide](https://marquaye.github.io/scanic/guide/ml-detection).
|
|
44
47
|
- ๐งช **Production Grade**: Built-in regression tests with physical image baselines.
|
|
45
48
|
|
|
46
|
-
## ๐ What's New
|
|
49
|
+
## ๐ What's New
|
|
47
50
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
See the [**full documentation**](https://marquaye.github.io/scanic), the
|
|
52
|
+
[**changelog**](CHANGELOG.md), and the [**releases**](https://github.com/marquaye/scanic/releases)
|
|
53
|
+
for the latest. Recent highlights:
|
|
54
|
+
|
|
55
|
+
- **Styleable corner editor** โ a built-in, touch-friendly UI to fine-tune detected corners, now fully themeable via CSS variables with a polished default toolbar. See the [corner editor guide](https://marquaye.github.io/scanic/guide/corner-editor).
|
|
56
|
+
- **New docs site** with guides for Web/Node.js/Electron/React/Vue and an interactive in-browser playground.
|
|
52
57
|
|
|
53
58
|
---
|
|
54
59
|
|
|
@@ -72,7 +77,7 @@ yarn add scanic
|
|
|
72
77
|
## ๐ฎ Demo
|
|
73
78
|
|
|
74
79
|
Try the interactive scanner in your browser:
|
|
75
|
-
๐ [**Open Scanic Live Demo**](https://marquaye.github.io/scanic)
|
|
80
|
+
๐ [**Open Scanic Live Demo**](https://marquaye.github.io/scanic/demo/)
|
|
76
81
|
|
|
77
82
|
---
|
|
78
83
|
|
|
@@ -284,8 +289,8 @@ Scanic is framework-agnostic but works great with modern UI libraries:
|
|
|
284
289
|
|
|
285
290
|
| Framework | Link |
|
|
286
291
|
| :--- | :--- |
|
|
287
|
-
| **Vue 3** | [Vue
|
|
288
|
-
| **React** | [
|
|
292
|
+
| **Vue 3** | [Vue & React Guide](https://marquaye.github.io/scanic/guide/frameworks) |
|
|
293
|
+
| **React** | [Vue & React Guide](https://marquaye.github.io/scanic/guide/frameworks) |
|
|
289
294
|
|
|
290
295
|
---
|
|
291
296
|
|
|
@@ -447,12 +452,7 @@ Contributions are welcome! Whether it's reporting a bug, suggesting a feature, o
|
|
|
447
452
|
|
|
448
453
|
## ๐บ๏ธ Roadmap
|
|
449
454
|
|
|
450
|
-
|
|
451
|
-
- [x] High-performance perspective transformation (Triangle Subdivision)
|
|
452
|
-
- [ ] Enhanced WASM module with additional Rust-optimized algorithms
|
|
453
|
-
- [ ] WebGPU acceleration for supported browsers
|
|
454
|
-
- [ ] Mobile-optimized real-time video processing frames
|
|
455
|
-
- [ ] Additional image enhancement filters (Adaptive Thresholding, B&W)
|
|
455
|
+
See [**ROADMAP.md**](ROADMAP.md) for what's shipped and what's planned.
|
|
456
456
|
|
|
457
457
|
## License
|
|
458
458
|
|