@kubohiroya/turbowarp-camera-calibration 0.13.1 → 0.14.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 +12 -2
- package/README.md +16 -4
- package/dist/camera-calibration.js +1131 -4
- package/docs/index.html +4 -1
- package/package.json +2 -2
- package/src/block-definitions.json +2 -2
- package/src/calibration/profile.ts +77 -1
package/README.ja.md
CHANGED
|
@@ -138,7 +138,7 @@ Node.jsやbuild環境を用意する必要はありません。専用buildのOpe
|
|
|
138
138
|
検証済みのversionをexact pinします。
|
|
139
139
|
|
|
140
140
|
```bash
|
|
141
|
-
pnpm add --save-exact @kubohiroya/turbowarp-camera-calibration@0.
|
|
141
|
+
pnpm add --save-exact @kubohiroya/turbowarp-camera-calibration@0.14.0
|
|
142
142
|
```
|
|
143
143
|
|
|
144
144
|
standalone bundle:
|
|
@@ -150,7 +150,7 @@ node_modules/@kubohiroya/turbowarp-camera-calibration/dist/camera-calibration.js
|
|
|
150
150
|
version固定CDN URL:
|
|
151
151
|
|
|
152
152
|
```text
|
|
153
|
-
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-camera-calibration@0.
|
|
153
|
+
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-camera-calibration@0.14.0/dist/camera-calibration.js
|
|
154
154
|
```
|
|
155
155
|
|
|
156
156
|
## クイックスタート
|
|
@@ -227,6 +227,16 @@ schemaの`$id`だけです。
|
|
|
227
227
|
`worldFromCameraMatrix`は解釈し直さずに捨てます。world poseは内部校正プロファイル
|
|
228
228
|
の一部ではないためです。
|
|
229
229
|
|
|
230
|
+
**PCの外へ出す校正は、このJSONではなくROSの`camera_info` YAMLファイルです。**
|
|
231
|
+
上のJSONはこの機能拡張がプロファイルを保持する形です。別のPCやツールへ渡すには、
|
|
232
|
+
publishしてからCamera Sourceの`camera profile YAML for [CAMERA_ID]`を読みます。
|
|
233
|
+
標準の部分はROSやOpenCV系のツールが読む形で、適合判定に使う項目は
|
|
234
|
+
`turbowarp_camera_source`の下に入ります。`import calibration profile`はこのファイルと
|
|
235
|
+
Camera Sourceの`twcs/camera-intrinsics`のJSONを、Camera Source自身の読み込み処理
|
|
236
|
+
(`@kubohiroya/turbowarp-camera-source/profile`)で読みます。そのため、受け付ける理由も
|
|
237
|
+
拒否する理由もCamera Sourceと同じです。魚眼(`equidistant`)の校正はこの機能拡張に
|
|
238
|
+
対応するモデルが無いので、別のモデルとして読み替えずに拒否します。
|
|
239
|
+
|
|
230
240
|
## 板の姿勢
|
|
231
241
|
|
|
232
242
|
校正には板を動かすことが必要で、板が動かない配置こそ校正できない配置です。
|
package/README.md
CHANGED
|
@@ -142,7 +142,7 @@ and is about 3.9 MB (about 1.5 MB gzip).
|
|
|
142
142
|
Install an exact version that you have reviewed:
|
|
143
143
|
|
|
144
144
|
```bash
|
|
145
|
-
pnpm add --save-exact @kubohiroya/turbowarp-camera-calibration@0.
|
|
145
|
+
pnpm add --save-exact @kubohiroya/turbowarp-camera-calibration@0.14.0
|
|
146
146
|
```
|
|
147
147
|
|
|
148
148
|
Load the standalone bundle from:
|
|
@@ -154,7 +154,7 @@ node_modules/@kubohiroya/turbowarp-camera-calibration/dist/camera-calibration.js
|
|
|
154
154
|
A version-pinned CDN URL is:
|
|
155
155
|
|
|
156
156
|
```text
|
|
157
|
-
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-camera-calibration@0.
|
|
157
|
+
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-camera-calibration@0.14.0/dist/camera-calibration.js
|
|
158
158
|
```
|
|
159
159
|
|
|
160
160
|
## Quick start
|
|
@@ -229,6 +229,18 @@ Profiles written by `@kubohiroya/turbowarp-realtime-motion-capture`
|
|
|
229
229
|
`worldFromCameraMatrix` is dropped rather than reinterpreted, because a world
|
|
230
230
|
pose is not part of an intrinsic profile.
|
|
231
231
|
|
|
232
|
+
**A calibration leaves the PC as a ROS `camera_info` YAML file, not as this JSON.**
|
|
233
|
+
The JSON above is how this extension holds a profile. To hand one to another
|
|
234
|
+
machine or tool, publish it and read Camera Source's
|
|
235
|
+
`camera profile YAML for [CAMERA_ID]`: the standard part is what ROS and
|
|
236
|
+
OpenCV-based tools load, and the members compatibility is decided on travel
|
|
237
|
+
under `turbowarp_camera_source`. `import calibration profile` reads that file --
|
|
238
|
+
and Camera Source's `twcs/camera-intrinsics` JSON -- through Camera Source's own
|
|
239
|
+
reader (`@kubohiroya/turbowarp-camera-source/profile`), so a file is accepted or
|
|
240
|
+
refused here for the same reasons it is there. A fisheye (`equidistant`)
|
|
241
|
+
calibration has no model in this extension and is refused rather than
|
|
242
|
+
relabelled.
|
|
243
|
+
|
|
232
244
|
## Board pose
|
|
233
245
|
|
|
234
246
|
A calibration needs the board to move, and a board that stays put is exactly the
|
|
@@ -446,7 +458,7 @@ Measures where the board is, in the camera's own frame, using the calibration al
|
|
|
446
458
|
|
|
447
459
|
### `import calibration profile [JSON] for camera [CAMERA_ID]`
|
|
448
460
|
|
|
449
|
-
Imports a calibration profile after schema, credential, and applicability checks. Pre-migration profiles are accepted and their world pose is dropped rather than reinterpreted.
|
|
461
|
+
Imports a calibration profile after schema, credential, and applicability checks. Accepts a calibration file as Camera Source writes it -- ROS camera_info YAML, or twcs/camera-intrinsics JSON -- read through Camera Source's own reader, as well as this extension's profile JSON. Pre-migration profiles are accepted and their world pose is dropped rather than reinterpreted.
|
|
450
462
|
|
|
451
463
|
| Property | Value |
|
|
452
464
|
|---|---|
|
|
@@ -577,7 +589,7 @@ Returns the detailed calibration diagnostic for that camera.
|
|
|
577
589
|
|
|
578
590
|
### `camera [CAMERA_ID] calibration profile JSON`
|
|
579
591
|
|
|
580
|
-
|
|
592
|
+
Returns the stored intrinsic profile in this extension's own JSON shape, or an empty string when none exists. To write a calibration to a file or a QR code, publish it and use Camera Source's camera profile YAML, which other tools read.
|
|
581
593
|
|
|
582
594
|
| Property | Value |
|
|
583
595
|
|---|---|
|