qr-decoder-js 1.0.3 → 1.0.4
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/dist/index.d.ts +9 -6
- package/dist/qr-decoder.js +666 -1240
- package/dist/qr-decoder.umd.cjs +1 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
export interface DecodeResult {
|
|
2
2
|
success: boolean;
|
|
3
|
-
/** The decoded text. */
|
|
3
|
+
/** The decoded text content. */
|
|
4
4
|
text?: string;
|
|
5
|
-
/** The TextDecoder label
|
|
5
|
+
/** The TextDecoder character encoding label used (e.g. "utf-8", "gb18030", "shift_jis"). */
|
|
6
6
|
encoding?: string;
|
|
7
|
-
/**
|
|
7
|
+
/** Detected encoding identifier. */
|
|
8
8
|
detectedEncoding?: string | null;
|
|
9
|
-
/** Preprocess version that matched: original /
|
|
9
|
+
/** Preprocess version that matched: original / blue-enhanced / red-channel / dot-matrix-healed / otsu-binary / inverted. */
|
|
10
10
|
version?: string;
|
|
11
11
|
error?: string;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export interface ReaderOptions {
|
|
15
|
-
/** Rescue depth:
|
|
16
|
-
*
|
|
15
|
+
/** Rescue depth:
|
|
16
|
+
* - fast: original only (fastest for high-framerate video stream)
|
|
17
|
+
* - balanced: original + blue-enhanced (2*R-B) + red-channel (default)
|
|
18
|
+
* - aggressive: balanced + dot-matrix healing + otsu binary + inverted
|
|
19
|
+
*/
|
|
17
20
|
mode?: 'fast' | 'balanced' | 'aggressive';
|
|
18
21
|
formats?: string[];
|
|
19
22
|
tryRotate?: boolean;
|