@kubohiroya/turbowarp-camera-source 0.12.0 → 0.13.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 +6 -2
- package/README.md +6 -2
- package/dist/camera-source.js +57 -2
- package/dist/runtime.d.ts +27 -0
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js.map +1 -1
- package/package.json +1 -1
package/README.ja.md
CHANGED
|
@@ -26,13 +26,13 @@ TurboWarp-Camera-Sourceは、MediaDevicesのカメラストリームを名前付
|
|
|
26
26
|
次のURLをunsandboxed custom extensionとして読み込みます。
|
|
27
27
|
|
|
28
28
|
```text
|
|
29
|
-
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-camera-source@0.
|
|
29
|
+
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-camera-source@0.13.0/dist/camera-source.js
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
npm hostでは次を使います。
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
pnpm add @kubohiroya/turbowarp-camera-source@0.
|
|
35
|
+
pnpm add @kubohiroya/turbowarp-camera-source@0.13.0
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
## Quick start
|
|
@@ -159,6 +159,8 @@ Scratchのtouchingまたはcolor sensing用の画像sourceとしては扱いま
|
|
|
159
159
|
|
|
160
160
|
**プロファイルを自分でスケールせず、内部行列を要求すること。** 校正時と違う解像度で届く場合、必要な計算は何が起きたかで変わる。単純な縮小なら`fx`・`fy`・`cx`・`cy`を比率倍するが、cropなら焦点距離はそのままで主点が平行移動する。trackの`resizeMode`を見られるのは本拡張だけなので、両者を区別できるのも本拡張だけ。**利用側がそれぞれ推測すれば、それぞれ違う推測をし、同じカメラがどの拡張から尋ねたかで違う幾何を返すことになる。** `camera intrinsics JSON`は現在のフレームに適合済みの数値を返し、cropやアスペクト変更で主点を置けない場合は空文字を返す。
|
|
161
161
|
|
|
162
|
+
**フレームの撮影時刻。** カメラがフレームを1枚表示すると、`getFrameSource()`は`frameTime`も返す。`timestampUs`はページの単調時計でのUnix epochからのマイクロ秒、`source`は`requestVideoFrameCallback`の`captureTime`なら`capture`、ブラウザが`presentationTime`しか報告しなければ`presentation`、`presentedFrames`は使用済みのフレームと新しいフレームを見分けるための番号である。同じページのカメラは同じ時計を共有するので、フレームをそのまま並べて比べられる。ほかのコンピュータとは同期していない。時刻はframe sourceを取得した時点で表示されていたフレームのものなので、画素を読む直前に取得すること。無いときは不明であって、現在時刻ではない。
|
|
163
|
+
|
|
162
164
|
**previewを反転してもフレームは反転しない。** `getFrameSource()`が返す`previewFlip`は、stageがどう描いているかだけを述べる。その裏にあるフレームは常にカメラが撮ったままである。**反転表示したpreview上で拾った座標は、これらのフレームと使う前に戻さなければならない** — previewの座標をそのままsolveへ渡すと、左右反転した姿勢に収束し、しかも再投影誤差は小さいまま出る。`horizontal`は左右反転で、`cv::flip(…, 1)`・ffmpegの`hflip`・CSSの`scaleX(-1)`と同じ。回転は別の関心事なので、同じenumには混ぜていない。
|
|
163
165
|
|
|
164
166
|
**契約は書き写さずimportすること。** 型は専用のentry pointとして公開してある。
|
|
@@ -251,6 +253,8 @@ if <(stored camera profile result for [pose]) = [restored]> then
|
|
|
251
253
|
|
|
252
254
|
## 互換性
|
|
253
255
|
|
|
256
|
+
0.13.0ではframe sourceに`frameTime`を追加した。既存のブロックとcapabilityのメンバーは変えていない。
|
|
257
|
+
|
|
254
258
|
0.12.0ではデバイスで絞る復元、`bind camera profile ... to its current device`、`camera profile ... belongs to its current device?`、`start shared camera [CAMERA_ID] requested by this page`を追加した。既存のブロックとcapabilityのメンバーは変えていない。
|
|
255
259
|
|
|
256
260
|
0.11.0では校正ファイルをROSの`camera_info` YAMLで読み書きするようにした。`camera profile YAML`を追加し、`register camera profile`はYAMLも受け取り、処理だけを持つ関数を`./profile`で公開した。既存のブロックとcapabilityのメンバーは変えていない。
|
package/README.md
CHANGED
|
@@ -30,13 +30,13 @@ or select separate cameras for separate roles.
|
|
|
30
30
|
Load this URL as an unsandboxed custom extension:
|
|
31
31
|
|
|
32
32
|
```text
|
|
33
|
-
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-camera-source@0.
|
|
33
|
+
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-camera-source@0.13.0/dist/camera-source.js
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
For npm hosts:
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
|
-
pnpm add @kubohiroya/turbowarp-camera-source@0.
|
|
39
|
+
pnpm add @kubohiroya/turbowarp-camera-source@0.13.0
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
## Quick Start
|
|
@@ -515,6 +515,8 @@ const assessment = calibration.assessProfile("pose");
|
|
|
515
515
|
|
|
516
516
|
**Ask for intrinsics rather than scaling a profile yourself.** When the camera delivers a size the calibration was not solved at, the arithmetic depends on what happened: a pure downscale multiplies `fx`, `fy`, `cx` and `cy`, while a crop leaves the focal lengths alone and shifts the principal point instead. Only this extension sees the track's `resizeMode`, so only it can tell the two apart — and if every consumer guesses, they guess differently and the same camera yields different geometry depending on which extension asked. `camera intrinsics JSON` returns numbers already adapted to the current frame, or an empty string when the difference is a crop or an aspect change and the principal point cannot be placed.
|
|
517
517
|
|
|
518
|
+
**Frame capture time.** `getFrameSource()` also carries `frameTime` once the camera has presented a frame: `timestampUs` in microseconds since the Unix epoch on the page's monotonic clock, `source` (`capture` for `captureTime` from `requestVideoFrameCallback`, `presentation` where the browser reports only `presentationTime`), and `presentedFrames`, which tells a frame already used from a new one. Cameras on one page share that clock, so their frames can be lined up directly; it is not synchronized with any other computer. Take the frame source immediately before reading pixels: the time belongs to the frame presented when the source was taken. Absent means unknown, never now.
|
|
519
|
+
|
|
518
520
|
**Turning the preview over does not turn the frames over.** `getFrameSource()` reports `previewFlip`, which describes how the stage is drawing the image and nothing else; the frames behind it are always the ones the camera captured. Coordinates picked off a flipped preview must be turned back before they are used with these frames — a solve fed the preview's coordinates converges on a left-right reflected pose and reports a small reprojection error while doing it. `horizontal` is the left-right mirror, matching `cv::flip(…, 1)`, ffmpeg's `hflip` and CSS `scaleX(-1)`; rotation is a separate concern and is deliberately not folded into the same enum.
|
|
519
521
|
|
|
520
522
|
**Import these declarations rather than re-writing them.** The contract is published as its own
|
|
@@ -649,6 +651,8 @@ profile), and save it. An app that opens the calibration app for one camera name
|
|
|
649
651
|
|
|
650
652
|
## Compatibility
|
|
651
653
|
|
|
654
|
+
Version 0.13.0 adds `frameTime` to the frame source. No existing block or capability member changes.
|
|
655
|
+
|
|
652
656
|
Version 0.12.0 adds device-scoped restore, `bind camera profile ... to its current device`,
|
|
653
657
|
`camera profile ... belongs to its current device?` and `start shared camera [CAMERA_ID] requested by this page`.
|
|
654
658
|
No existing block or capability member changes.
|
package/dist/camera-source.js
CHANGED
|
@@ -2236,6 +2236,55 @@
|
|
|
2236
2236
|
});
|
|
2237
2237
|
}
|
|
2238
2238
|
//#endregion
|
|
2239
|
+
//#region src/frame-time.ts
|
|
2240
|
+
function finite(value) {
|
|
2241
|
+
return typeof value === "number" && Number.isFinite(value) ? value : void 0;
|
|
2242
|
+
}
|
|
2243
|
+
/** The time of one presented frame, or the previous one when the metadata carries no time. */
|
|
2244
|
+
function frameTimeFrom(metadata, timeOriginMs, previous) {
|
|
2245
|
+
const capture = finite(metadata.captureTime);
|
|
2246
|
+
const presentation = finite(metadata.presentationTime);
|
|
2247
|
+
const milliseconds = capture ?? presentation;
|
|
2248
|
+
if (milliseconds === void 0) return previous;
|
|
2249
|
+
return Object.freeze({
|
|
2250
|
+
timestampUs: Math.round((timeOriginMs + milliseconds) * 1e3),
|
|
2251
|
+
source: capture === void 0 ? "presentation" : "capture",
|
|
2252
|
+
presentedFrames: finite(metadata.presentedFrames) ?? (previous?.presentedFrames ?? 0) + 1
|
|
2253
|
+
});
|
|
2254
|
+
}
|
|
2255
|
+
/**
|
|
2256
|
+
* Follows one video element for as long as its camera runs.
|
|
2257
|
+
*
|
|
2258
|
+
* Nothing is recorded where the browser has no `requestVideoFrameCallback`; frame sources then carry
|
|
2259
|
+
* no time, which a consumer has to treat as unknown rather than as now.
|
|
2260
|
+
*/
|
|
2261
|
+
var FrameTimeWatcher = class {
|
|
2262
|
+
constructor(element, timeOriginMs) {
|
|
2263
|
+
this.disposed = false;
|
|
2264
|
+
this.element = element;
|
|
2265
|
+
this.timeOriginMs = timeOriginMs;
|
|
2266
|
+
this.schedule();
|
|
2267
|
+
}
|
|
2268
|
+
latest() {
|
|
2269
|
+
return this.frame;
|
|
2270
|
+
}
|
|
2271
|
+
dispose() {
|
|
2272
|
+
this.disposed = true;
|
|
2273
|
+
if (this.handle !== void 0) {
|
|
2274
|
+
this.element.cancelVideoFrameCallback(this.handle);
|
|
2275
|
+
this.handle = void 0;
|
|
2276
|
+
}
|
|
2277
|
+
}
|
|
2278
|
+
schedule() {
|
|
2279
|
+
if (this.disposed || typeof this.element.requestVideoFrameCallback !== "function") return;
|
|
2280
|
+
this.handle = this.element.requestVideoFrameCallback((_now, metadata) => {
|
|
2281
|
+
this.handle = void 0;
|
|
2282
|
+
this.frame = frameTimeFrom(metadata, this.timeOriginMs, this.frame);
|
|
2283
|
+
this.schedule();
|
|
2284
|
+
});
|
|
2285
|
+
}
|
|
2286
|
+
};
|
|
2287
|
+
//#endregion
|
|
2239
2288
|
//#region src/extension.ts
|
|
2240
2289
|
var blockDefinitions = block_definitions_default.blocks;
|
|
2241
2290
|
var menuDefinitions = block_definitions_default.menus;
|
|
@@ -2959,7 +3008,8 @@
|
|
|
2959
3008
|
video: null,
|
|
2960
3009
|
preview: null,
|
|
2961
3010
|
startPromise: null,
|
|
2962
|
-
activeDeviceId: ""
|
|
3011
|
+
activeDeviceId: "",
|
|
3012
|
+
frameTimes: null
|
|
2963
3013
|
};
|
|
2964
3014
|
this.sessions.set(cameraId, session);
|
|
2965
3015
|
return session;
|
|
@@ -2978,6 +3028,7 @@
|
|
|
2978
3028
|
if (!session.active) throw new Error("Camera acquisition was cancelled.");
|
|
2979
3029
|
session.stream = stream;
|
|
2980
3030
|
session.video = video;
|
|
3031
|
+
session.frameTimes = new FrameTimeWatcher(video, globalThis.performance?.timeOrigin ?? 0);
|
|
2981
3032
|
this.watchStreamEnd(session, stream);
|
|
2982
3033
|
this.updateActiveDevice(session);
|
|
2983
3034
|
this.cameraFailures.delete(session.cameraId);
|
|
@@ -3035,13 +3086,15 @@
|
|
|
3035
3086
|
}
|
|
3036
3087
|
getFrameSource(session) {
|
|
3037
3088
|
if (!session.video || !session.stream) throw new Error("Shared camera is not running.");
|
|
3089
|
+
const frameTime = session.frameTimes?.latest();
|
|
3038
3090
|
return Object.freeze({
|
|
3039
3091
|
kind: "video",
|
|
3040
3092
|
element: session.video,
|
|
3041
3093
|
width: session.video.videoWidth,
|
|
3042
3094
|
height: session.video.videoHeight,
|
|
3043
3095
|
previewFlip: this.previewFlip(session),
|
|
3044
|
-
deviceId: session.activeDeviceId
|
|
3096
|
+
deviceId: session.activeDeviceId,
|
|
3097
|
+
...frameTime === void 0 ? {} : { frameTime }
|
|
3045
3098
|
});
|
|
3046
3099
|
}
|
|
3047
3100
|
stopWhenUnused(session) {
|
|
@@ -3054,6 +3107,8 @@
|
|
|
3054
3107
|
session.active = false;
|
|
3055
3108
|
this.nextPreviewBlockRevision(cameraId);
|
|
3056
3109
|
session.preview?.dispose();
|
|
3110
|
+
session.frameTimes?.dispose();
|
|
3111
|
+
session.frameTimes = null;
|
|
3057
3112
|
session.stream?.getTracks().forEach((track) => track.stop());
|
|
3058
3113
|
if (session.video) session.video.srcObject = null;
|
|
3059
3114
|
session.stream = null;
|
package/dist/runtime.d.ts
CHANGED
|
@@ -66,6 +66,33 @@ export interface CameraFrameSource {
|
|
|
66
66
|
*/
|
|
67
67
|
readonly previewFlip: Flip;
|
|
68
68
|
readonly deviceId: string;
|
|
69
|
+
/**
|
|
70
|
+
* When the frame the element is showing was captured, as of the moment this source was taken.
|
|
71
|
+
*
|
|
72
|
+
* Absent until the camera has presented a frame, and where the browser has no
|
|
73
|
+
* `requestVideoFrameCallback`; absent means unknown, never now. The element can present a newer
|
|
74
|
+
* frame between taking the source and reading pixels from it, so the time belongs to the frame
|
|
75
|
+
* presented when the source was taken — take the source immediately before reading pixels.
|
|
76
|
+
*/
|
|
77
|
+
readonly frameTime?: CameraFrameTime;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The capture time of a presented frame.
|
|
81
|
+
*
|
|
82
|
+
* `timestampUs` is microseconds since the Unix epoch on the page's monotonic clock
|
|
83
|
+
* (`performance.timeOrigin + time`). Cameras on one page share that clock, so their frames can be
|
|
84
|
+
* compared directly; it is not synchronized with any other computer.
|
|
85
|
+
*/
|
|
86
|
+
export interface CameraFrameTime {
|
|
87
|
+
readonly timestampUs: number;
|
|
88
|
+
/**
|
|
89
|
+
* `capture` is when the frame left the device (`captureTime`). `presentation` is when the browser
|
|
90
|
+
* presented it (`presentationTime`), later by the capture and decode pipeline, and used only where
|
|
91
|
+
* the browser reports no capture time.
|
|
92
|
+
*/
|
|
93
|
+
readonly source: 'capture' | 'presentation';
|
|
94
|
+
/** Increases with every presented frame, so a frame already used can be recognized. */
|
|
95
|
+
readonly presentedFrames: number;
|
|
69
96
|
}
|
|
70
97
|
export interface CameraLease {
|
|
71
98
|
getFrameSource(): CameraFrameSource;
|
package/dist/runtime.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,0FAA0F;AAC1F,eAAO,MAAM,uBAAuB,2BAA2B,CAAC;AAEhE;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,+BAA+B,CAAC;AAEnE;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,qCAAqC,CAAC;AAE5E,wFAAwF;AACxF,eAAO,MAAM,6BAA6B,EAAG,CAAU,CAAC;AAEx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EAChB,wBAAwB,EACxB,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACd,MAAM,wBAAwB,CAAC;AAEhC,YAAY,EACV,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,6BAA6B,CAAC;AAErC,YAAY,EACV,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACb,MAAM,gCAAgC,CAAC;AAExC,YAAY,EAAC,gBAAgB,EAAC,MAAM,6BAA6B,CAAC;AAElE,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,yBAAyB,CAAC;AAEtE,oGAAoG;AACpG,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,mBAAmB,GAAG,SAAS,CAMzF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,OAAO,GACf,wBAAwB,GAAG,SAAS,CAMtC"}
|
package/dist/runtime.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,0FAA0F;AAC1F,MAAM,CAAC,MAAM,uBAAuB,GAAG,wBAAwB,CAAC;AAEhE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,4BAA4B,CAAC;AAEnE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,kCAAkC,CAAC;AAE5E,wFAAwF;AACxF,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,0FAA0F;AAC1F,MAAM,CAAC,MAAM,uBAAuB,GAAG,wBAAwB,CAAC;AAEhE;;;;;GAKG;AACH,MAA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iroya Kubo <hiroya@cuc.ac.jp>",
|
|
5
5
|
"description": "A TurboWarp capability extension for sharing one MediaDevices camera stream across extensions.",
|
|
6
6
|
"type": "module",
|