@kubohiroya/turbowarp-camera-calibration 0.8.1 → 0.9.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 +23 -3
- package/dist/camera-calibration.js +163 -15
- package/dist/extension-manifest.json +20 -0
- package/lib/calibration/contract.d.ts +30 -3
- package/lib/calibration/types.d.ts +23 -1
- package/lib/runtime-capability.d.ts +24 -2
- package/lib/runtime-capability.js +3 -1
- package/lib/runtime.d.ts +1 -1
- package/package.json +1 -1
- package/src/block-definitions.json +25 -1
- package/src/calibration/contract.ts +31 -2
- package/src/calibration/controller.ts +129 -12
- package/src/calibration/opencv-backend.ts +34 -6
- package/src/calibration/pose.ts +54 -0
- package/src/calibration/types.ts +24 -1
- package/src/calibration/worker-backend.ts +2 -1
- package/src/extension.ts +10 -0
- package/src/runtime-capability.ts +27 -2
- package/src/runtime.ts +2 -1
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.9.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.9.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.9.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.9.0/dist/camera-calibration.js
|
|
118
118
|
```
|
|
119
119
|
|
|
120
120
|
## Quick start
|
|
@@ -240,7 +240,7 @@ Reports whether the shutter is watching that camera on its own. It stops by itse
|
|
|
240
240
|
|
|
241
241
|
### `camera calibration guidance [CAMERA_ID]`
|
|
242
242
|
|
|
243
|
-
Returns what the operator should do next while automatic capture runs: show-the-board, hold-steadier, move-or-tilt, tilt-more, keep-going,
|
|
243
|
+
Returns what the operator should do next while automatic capture runs: show-the-board, wrong-board, hold-steadier, move-or-tilt, tilt-more, keep-going, vary-more, solving, or complete. Empty when the shutter is not watching. This is not an error: most frames are declined, because most of the time the board is between two useful positions. wrong-board means markers are in frame that do not make the board being calibrated. vary-more means the answer reproduces the views it was fitted to and not the ones it was not, which more of the same views cannot fix.
|
|
244
244
|
|
|
245
245
|
| Property | Value |
|
|
246
246
|
|---|---|
|
|
@@ -248,6 +248,26 @@ Returns what the operator should do next while automatic capture runs: show-the-
|
|
|
248
248
|
| Opcode | `cameraCalibrationGuidance` |
|
|
249
249
|
| `CAMERA_ID` | String, default: `default` |
|
|
250
250
|
|
|
251
|
+
### `camera calibration novelty [CAMERA_ID]`
|
|
252
|
+
|
|
253
|
+
Returns how much the view automatic capture is looking at would add, from 0 to 1. One is a view turned as far from every retained view as the whole set is required to spread; zero means nothing usable is in frame. Measured in tilt, not in where the corners landed: sliding the board moves every corner and adds nothing a solve can use. Meant to drive something continuous -- a tone, a bar, a click rate -- because the operator is holding the board and not reading the screen.
|
|
254
|
+
|
|
255
|
+
| Property | Value |
|
|
256
|
+
|---|---|
|
|
257
|
+
| Type | Reporter |
|
|
258
|
+
| Opcode | `cameraCalibrationNovelty` |
|
|
259
|
+
| `CAMERA_ID` | String, default: `default` |
|
|
260
|
+
|
|
261
|
+
### `camera calibration tilt direction [CAMERA_ID]`
|
|
262
|
+
|
|
263
|
+
Returns which way the board still has to be turned: top-near, top-far, left-near, right-near, or empty outside a live session. The direction least represented in what has been collected, so that "tilt it more" -- an instruction the operator has to interpret -- becomes one they can carry out.
|
|
264
|
+
|
|
265
|
+
| Property | Value |
|
|
266
|
+
|---|---|
|
|
267
|
+
| Type | Reporter |
|
|
268
|
+
| Opcode | `cameraCalibrationTiltDirection` |
|
|
269
|
+
| `CAMERA_ID` | String, default: `default` |
|
|
270
|
+
|
|
251
271
|
### `solve calibration for camera [CAMERA_ID]`
|
|
252
272
|
|
|
253
273
|
Solves the intrinsic matrix and distortion coefficients from at least eight accepted samples, then releases the camera lease. No external pose is produced.
|