@scanmate/align 0.0.3 → 0.2.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/dist/index.esm.js
CHANGED
|
@@ -1079,6 +1079,8 @@ async function alignScan(original, scanned, options = {}) {
|
|
|
1079
1079
|
format: output,
|
|
1080
1080
|
quality
|
|
1081
1081
|
}),
|
|
1082
|
+
// The aligned pixels sit on the original's canvas, so they are at its resolution.
|
|
1083
|
+
dpi: null,
|
|
1082
1084
|
width: raster.width,
|
|
1083
1085
|
height: raster.height,
|
|
1084
1086
|
matrix,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ScanmateSource } from '@scanmate/ink';
|
|
2
2
|
import type { AlignOptions, AlignResult } from './align-result.contract.js';
|
|
3
3
|
/**
|
|
4
4
|
* Align a scan onto the page it was made from.
|
|
@@ -55,5 +55,5 @@ import type { AlignOptions, AlignResult } from './align-result.contract.js';
|
|
|
55
55
|
* the coarse search, ORB and RANSAC all run to completion on this thread - so
|
|
56
56
|
* to align several pages at once, still put this in a worker thread.
|
|
57
57
|
*/
|
|
58
|
-
export declare function alignScan(original:
|
|
58
|
+
export declare function alignScan(original: ScanmateSource, scanned: ScanmateSource, options?: AlignOptions): Promise<AlignResult>;
|
|
59
59
|
//# sourceMappingURL=align-scan.use-case.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scanmate/align",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Put a scanned or photographed page back onto the original it came from: deskew, rescale and register, trying transform models until one is good enough.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Eduardo Russo",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"!**/*.js.map"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@scanmate/ink": "^0.0
|
|
45
|
+
"@scanmate/ink": "^0.2.0"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|