@kubohiroya/turbowarp-camera-calibration 0.6.0 → 0.7.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.ja.md +2 -2
- package/README.md +2 -2
- package/THIRD_PARTY_NOTICES.md +17 -11
- package/dist/camera-calibration.js +333 -7618
- package/lib/calibration/types.d.ts +14 -1
- package/package.json +6 -3
- package/src/calibration/opencv-backend.ts +26 -69
- package/src/calibration/opencv-symbols.ts +65 -0
- package/src/calibration/opencv-worker.ts +40 -0
- package/src/calibration/types.ts +15 -1
- package/src/calibration/worker-backend.ts +108 -0
- package/src/extension.ts +1 -1
- package/src/globals.d.ts +16 -0
- package/vendor/opencv.js +49 -0
package/README.ja.md
CHANGED
|
@@ -101,7 +101,7 @@ bundleは約11 MBあります。
|
|
|
101
101
|
検証済みのversionをexact pinします。
|
|
102
102
|
|
|
103
103
|
```bash
|
|
104
|
-
pnpm add --save-exact @kubohiroya/turbowarp-camera-calibration@0.
|
|
104
|
+
pnpm add --save-exact @kubohiroya/turbowarp-camera-calibration@0.7.0
|
|
105
105
|
```
|
|
106
106
|
|
|
107
107
|
standalone bundle:
|
|
@@ -113,7 +113,7 @@ node_modules/@kubohiroya/turbowarp-camera-calibration/dist/camera-calibration.js
|
|
|
113
113
|
version固定CDN URL:
|
|
114
114
|
|
|
115
115
|
```text
|
|
116
|
-
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-camera-calibration@0.
|
|
116
|
+
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-camera-calibration@0.7.0/dist/camera-calibration.js
|
|
117
117
|
```
|
|
118
118
|
|
|
119
119
|
## クイックスタート
|
package/README.md
CHANGED
|
@@ -102,7 +102,7 @@ therefore about 11 MB.
|
|
|
102
102
|
Install an exact version that you have reviewed:
|
|
103
103
|
|
|
104
104
|
```bash
|
|
105
|
-
pnpm add --save-exact @kubohiroya/turbowarp-camera-calibration@0.
|
|
105
|
+
pnpm add --save-exact @kubohiroya/turbowarp-camera-calibration@0.7.0
|
|
106
106
|
```
|
|
107
107
|
|
|
108
108
|
Load the standalone bundle from:
|
|
@@ -114,7 +114,7 @@ node_modules/@kubohiroya/turbowarp-camera-calibration/dist/camera-calibration.js
|
|
|
114
114
|
A version-pinned CDN URL is:
|
|
115
115
|
|
|
116
116
|
```text
|
|
117
|
-
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-camera-calibration@0.
|
|
117
|
+
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-camera-calibration@0.7.0/dist/camera-calibration.js
|
|
118
118
|
```
|
|
119
119
|
|
|
120
120
|
## Quick start
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -5,23 +5,29 @@ including the components listed below.
|
|
|
5
5
|
|
|
6
6
|
## OpenCV.js
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
[
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
`vendor/opencv.js` is built from [OpenCV](https://github.com/opencv/opencv) at tag `4.12.0`
|
|
9
|
+
by [`tools/opencv/build.sh`](tools/opencv/build.sh), in a pinned Emscripten container. It is not a
|
|
10
|
+
published npm package: the stock `@techstark/opencv-js` build never finishes initializing inside a
|
|
11
|
+
Web Worker, which is where the solver has to run, and it is 10.9 MB of general-purpose OpenCV for
|
|
12
|
+
the twenty-three symbols this extension calls. Ours is 3.85 MB and starts in a worker in 18 ms.
|
|
13
|
+
|
|
14
|
+
The build drops OpenCV's unconditional `-s DEMANGLE_SUPPORT=1`, a setting Emscripten has removed;
|
|
15
|
+
it only added demangled names to stack traces. Nothing else in OpenCV's sources is modified.
|
|
13
16
|
|
|
14
17
|
OpenCV is distributed under the Apache License 2.0:
|
|
15
18
|
|
|
16
19
|
- <https://github.com/opencv/opencv>
|
|
17
|
-
- <https://github.com/TechStark/opencv-js>
|
|
18
20
|
- <https://www.apache.org/licenses/LICENSE-2.0>
|
|
19
21
|
|
|
20
|
-
The
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
The WebAssembly is inlined into `dist/camera-calibration.js`, because a TurboWarp extension ships as
|
|
23
|
+
one standalone file and a separate `.wasm` would have nowhere to be fetched from. The runtime is
|
|
24
|
+
still initialized lazily: the worker is not created until a calibration starts, so loading the
|
|
25
|
+
extension or reading the backend reporter never touches it.
|
|
26
|
+
|
|
27
|
+
## Comlink
|
|
28
|
+
|
|
29
|
+
The worker is addressed through [Comlink](https://github.com/GoogleChromeLabs/comlink) at the exact
|
|
30
|
+
version `4.4.2`, distributed under the Apache License 2.0.
|
|
25
31
|
|
|
26
32
|
## Camera Source declarations
|
|
27
33
|
|