@camstack/addon-pipeline 1.1.54 → 1.1.55
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/audio-analyzer/index.js +1 -1
- package/dist/audio-analyzer/index.mjs +1 -1
- package/dist/detection-pipeline/index.js +149 -1468
- package/dist/detection-pipeline/index.mjs +129 -1448
- package/dist/{dist-BbaoC680.js → dist-DI57FC8K.js} +59 -3
- package/dist/{dist-CEcTeu1h.mjs → dist-RWGGPwVx.mjs} +59 -3
- package/dist/motion-wasm/index.js +1 -1
- package/dist/motion-wasm/index.mjs +1 -1
- package/dist/pipeline-runner/index.js +665 -23
- package/dist/pipeline-runner/index.mjs +665 -24
- package/dist/recorder/index.js +1 -1
- package/dist/recorder/index.mjs +1 -1
- package/dist/{remote-source-plane-vN45KFSm.js → remote-source-plane-CHgvzzA6.js} +1 -1
- package/dist/{remote-source-plane-CNCqC_XG.mjs → remote-source-plane-DU0aRSPv.mjs} +1 -1
- package/dist/session-decode/decode-worker-child.js +222 -3
- package/dist/session-decode/decode-worker-child.mjs +222 -3
- package/dist/step-definitions-CNBFKjZe.js +1514 -0
- package/dist/step-definitions-CP9kVSml.mjs +1479 -0
- package/dist/stream-broker/_stub.js +1 -1
- package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-HS0tc6Sa.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-mDCPzmT3.mjs} +3 -3
- package/dist/stream-broker/{_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-B_v5r5ya.mjs → _virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-Dn_pxzP-.mjs} +1 -1
- package/dist/stream-broker/{hostInit-DgohfEDA.mjs → hostInit-GM_CI22k.mjs} +3 -3
- package/dist/stream-broker/index.js +2 -2
- package/dist/stream-broker/index.mjs +2 -2
- package/dist/stream-broker/remoteEntry.js +1 -1
- package/dist/{worker-protocol-DGIt_waM.mjs → worker-protocol-CyVJTZEO.mjs} +1 -0
- package/dist/{worker-protocol-DkL6GDxe.js → worker-protocol-PP4jKHHJ.js} +1 -0
- package/embed-dist/assets/{MaskShapeCanvas-DI4BY7W2-CA2Hd6xx.js → MaskShapeCanvas-DI4BY7W2-BChW0ntM.js} +1 -1
- package/embed-dist/assets/{MotionZonesSettings-NcxxQN8r-DUN1VeC7.js → MotionZonesSettings-NcxxQN8r-DDzqEbSe.js} +1 -1
- package/embed-dist/assets/{PrivacyMaskSettings-APgPLF7p-BqZIAU5s.js → PrivacyMaskSettings-APgPLF7p-B879GXaf.js} +1 -1
- package/embed-dist/assets/{index-CMkYypxB.js → index-CNjQ5rAE.js} +10 -10
- package/embed-dist/index.html +1 -1
- package/package.json +1 -1
|
@@ -4627,7 +4627,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4627
4627
|
return inst;
|
|
4628
4628
|
}
|
|
4629
4629
|
//#endregion
|
|
4630
|
-
//#region ../types/dist/sleep-
|
|
4630
|
+
//#region ../types/dist/sleep-Baang_XW.mjs
|
|
4631
4631
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4632
4632
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4633
4633
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -11711,7 +11711,15 @@ var pipelineExecutorCapability = {
|
|
|
11711
11711
|
image: _instanceof(Uint8Array).optional(),
|
|
11712
11712
|
referenceImage: string().optional(),
|
|
11713
11713
|
deviceId: number().optional(),
|
|
11714
|
-
sessionId: string().optional()
|
|
11714
|
+
sessionId: string().optional(),
|
|
11715
|
+
/**
|
|
11716
|
+
* Execution plane. 'full' (default) runs the whole tree — benchmark,
|
|
11717
|
+
* reference-image, and detail-subtree calls. 'frame' is the live
|
|
11718
|
+
* per-frame dispatch: ONLY root-plane steps run; crop children
|
|
11719
|
+
* (inputClasses ≠ null) are skipped and served per-track via
|
|
11720
|
+
* pipelineRunner.runDetailSubtree (two-plane design).
|
|
11721
|
+
*/
|
|
11722
|
+
plane: _enum(["full", "frame"]).optional()
|
|
11715
11723
|
}), PipelineRunResultBridge, { kind: "mutation" }),
|
|
11716
11724
|
/**
|
|
11717
11725
|
* Batched run — N raw frames packed into one cap call. The provider
|
|
@@ -11908,6 +11916,28 @@ var NativeCropResultSchema = object({
|
|
|
11908
11916
|
width: number().int().positive(),
|
|
11909
11917
|
height: number().int().positive()
|
|
11910
11918
|
});
|
|
11919
|
+
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
11920
|
+
* originating detection, in FRAME-space coordinates. Reuses
|
|
11921
|
+
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
11922
|
+
* the coordinates are frame-space rather than getNativeCrop's
|
|
11923
|
+
* normalized [0,1] convention). */
|
|
11924
|
+
var DetailParentSchema = object({
|
|
11925
|
+
bbox: NativeCropBboxSchema,
|
|
11926
|
+
className: string()
|
|
11927
|
+
});
|
|
11928
|
+
/** One child-step result from `runDetailSubtree` — an embedding, label,
|
|
11929
|
+
* or refined detection produced by running the crop-subtree on a
|
|
11930
|
+
* single tracked detection. */
|
|
11931
|
+
var DetailResultSchema = object({
|
|
11932
|
+
stepId: string(),
|
|
11933
|
+
className: string(),
|
|
11934
|
+
score: number(),
|
|
11935
|
+
/** FRAME-space bbox (already mapped back from crop space). */
|
|
11936
|
+
bbox: NativeCropBboxSchema.optional(),
|
|
11937
|
+
embedding: string().optional(),
|
|
11938
|
+
label: string().optional(),
|
|
11939
|
+
alignedCropJpeg: string().optional()
|
|
11940
|
+
});
|
|
11911
11941
|
/**
|
|
11912
11942
|
* Per-camera tunable ranges + defaults. Single source of truth used
|
|
11913
11943
|
* by both the Zod data schema (validation + default fallback) and
|
|
@@ -12227,7 +12257,27 @@ var pipelineRunnerCapability = {
|
|
|
12227
12257
|
handle: FrameHandleSchema,
|
|
12228
12258
|
bbox: NativeCropBboxSchema,
|
|
12229
12259
|
maxWidth: number().int().positive().optional()
|
|
12230
|
-
}), NativeCropResultSchema.nullable())
|
|
12260
|
+
}), NativeCropResultSchema.nullable()),
|
|
12261
|
+
/**
|
|
12262
|
+
* Two-plane design: run the DETAIL subtree (crop children —
|
|
12263
|
+
* embedding, classifier, refiner steps whose `inputClasses ≠ null`)
|
|
12264
|
+
* for a single tracked detection. The per-frame plane (`runPipeline`
|
|
12265
|
+
* with `plane: 'frame'`) skips crop children entirely; a track-level
|
|
12266
|
+
* caller invokes this per-track, on its own cadence, instead of on
|
|
12267
|
+
* every frame. Takes either a `frameHandle` (shm lease/session —
|
|
12268
|
+
* preferred, zero-copy) or a `cropJpeg` fallback when the lease/
|
|
12269
|
+
* session backing the frame is already gone. `steps` narrows which
|
|
12270
|
+
* configured children to run (default: all configured children for
|
|
12271
|
+
* `parent.className`). Returns `null` when neither frame source is
|
|
12272
|
+
* resolvable (handle evicted and no cropJpeg fallback supplied).
|
|
12273
|
+
*/
|
|
12274
|
+
runDetailSubtree: method(object({
|
|
12275
|
+
deviceId: number(),
|
|
12276
|
+
frameHandle: FrameHandleSchema.optional(),
|
|
12277
|
+
cropJpeg: string().optional(),
|
|
12278
|
+
parent: DetailParentSchema,
|
|
12279
|
+
steps: array(string()).optional()
|
|
12280
|
+
}), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" })
|
|
12231
12281
|
}
|
|
12232
12282
|
};
|
|
12233
12283
|
object({
|
|
@@ -23384,6 +23434,12 @@ Object.freeze({
|
|
|
23384
23434
|
addonId: null,
|
|
23385
23435
|
access: "create"
|
|
23386
23436
|
},
|
|
23437
|
+
"pipelineRunner.runDetailSubtree": {
|
|
23438
|
+
capName: "pipeline-runner",
|
|
23439
|
+
capScope: "system",
|
|
23440
|
+
addonId: null,
|
|
23441
|
+
access: "create"
|
|
23442
|
+
},
|
|
23387
23443
|
"plateGallery.correctPlateText": {
|
|
23388
23444
|
capName: "plate-gallery",
|
|
23389
23445
|
capScope: "system",
|
|
@@ -4627,7 +4627,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4627
4627
|
return inst;
|
|
4628
4628
|
}
|
|
4629
4629
|
//#endregion
|
|
4630
|
-
//#region ../types/dist/sleep-
|
|
4630
|
+
//#region ../types/dist/sleep-Baang_XW.mjs
|
|
4631
4631
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4632
4632
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4633
4633
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -11711,7 +11711,15 @@ var pipelineExecutorCapability = {
|
|
|
11711
11711
|
image: _instanceof(Uint8Array).optional(),
|
|
11712
11712
|
referenceImage: string().optional(),
|
|
11713
11713
|
deviceId: number().optional(),
|
|
11714
|
-
sessionId: string().optional()
|
|
11714
|
+
sessionId: string().optional(),
|
|
11715
|
+
/**
|
|
11716
|
+
* Execution plane. 'full' (default) runs the whole tree — benchmark,
|
|
11717
|
+
* reference-image, and detail-subtree calls. 'frame' is the live
|
|
11718
|
+
* per-frame dispatch: ONLY root-plane steps run; crop children
|
|
11719
|
+
* (inputClasses ≠ null) are skipped and served per-track via
|
|
11720
|
+
* pipelineRunner.runDetailSubtree (two-plane design).
|
|
11721
|
+
*/
|
|
11722
|
+
plane: _enum(["full", "frame"]).optional()
|
|
11715
11723
|
}), PipelineRunResultBridge, { kind: "mutation" }),
|
|
11716
11724
|
/**
|
|
11717
11725
|
* Batched run — N raw frames packed into one cap call. The provider
|
|
@@ -11908,6 +11916,28 @@ var NativeCropResultSchema = object({
|
|
|
11908
11916
|
width: number().int().positive(),
|
|
11909
11917
|
height: number().int().positive()
|
|
11910
11918
|
});
|
|
11919
|
+
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
11920
|
+
* originating detection, in FRAME-space coordinates. Reuses
|
|
11921
|
+
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
11922
|
+
* the coordinates are frame-space rather than getNativeCrop's
|
|
11923
|
+
* normalized [0,1] convention). */
|
|
11924
|
+
var DetailParentSchema = object({
|
|
11925
|
+
bbox: NativeCropBboxSchema,
|
|
11926
|
+
className: string()
|
|
11927
|
+
});
|
|
11928
|
+
/** One child-step result from `runDetailSubtree` — an embedding, label,
|
|
11929
|
+
* or refined detection produced by running the crop-subtree on a
|
|
11930
|
+
* single tracked detection. */
|
|
11931
|
+
var DetailResultSchema = object({
|
|
11932
|
+
stepId: string(),
|
|
11933
|
+
className: string(),
|
|
11934
|
+
score: number(),
|
|
11935
|
+
/** FRAME-space bbox (already mapped back from crop space). */
|
|
11936
|
+
bbox: NativeCropBboxSchema.optional(),
|
|
11937
|
+
embedding: string().optional(),
|
|
11938
|
+
label: string().optional(),
|
|
11939
|
+
alignedCropJpeg: string().optional()
|
|
11940
|
+
});
|
|
11911
11941
|
/**
|
|
11912
11942
|
* Per-camera tunable ranges + defaults. Single source of truth used
|
|
11913
11943
|
* by both the Zod data schema (validation + default fallback) and
|
|
@@ -12227,7 +12257,27 @@ var pipelineRunnerCapability = {
|
|
|
12227
12257
|
handle: FrameHandleSchema,
|
|
12228
12258
|
bbox: NativeCropBboxSchema,
|
|
12229
12259
|
maxWidth: number().int().positive().optional()
|
|
12230
|
-
}), NativeCropResultSchema.nullable())
|
|
12260
|
+
}), NativeCropResultSchema.nullable()),
|
|
12261
|
+
/**
|
|
12262
|
+
* Two-plane design: run the DETAIL subtree (crop children —
|
|
12263
|
+
* embedding, classifier, refiner steps whose `inputClasses ≠ null`)
|
|
12264
|
+
* for a single tracked detection. The per-frame plane (`runPipeline`
|
|
12265
|
+
* with `plane: 'frame'`) skips crop children entirely; a track-level
|
|
12266
|
+
* caller invokes this per-track, on its own cadence, instead of on
|
|
12267
|
+
* every frame. Takes either a `frameHandle` (shm lease/session —
|
|
12268
|
+
* preferred, zero-copy) or a `cropJpeg` fallback when the lease/
|
|
12269
|
+
* session backing the frame is already gone. `steps` narrows which
|
|
12270
|
+
* configured children to run (default: all configured children for
|
|
12271
|
+
* `parent.className`). Returns `null` when neither frame source is
|
|
12272
|
+
* resolvable (handle evicted and no cropJpeg fallback supplied).
|
|
12273
|
+
*/
|
|
12274
|
+
runDetailSubtree: method(object({
|
|
12275
|
+
deviceId: number(),
|
|
12276
|
+
frameHandle: FrameHandleSchema.optional(),
|
|
12277
|
+
cropJpeg: string().optional(),
|
|
12278
|
+
parent: DetailParentSchema,
|
|
12279
|
+
steps: array(string()).optional()
|
|
12280
|
+
}), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" })
|
|
12231
12281
|
}
|
|
12232
12282
|
};
|
|
12233
12283
|
object({
|
|
@@ -23384,6 +23434,12 @@ Object.freeze({
|
|
|
23384
23434
|
addonId: null,
|
|
23385
23435
|
access: "create"
|
|
23386
23436
|
},
|
|
23437
|
+
"pipelineRunner.runDetailSubtree": {
|
|
23438
|
+
capName: "pipeline-runner",
|
|
23439
|
+
capScope: "system",
|
|
23440
|
+
addonId: null,
|
|
23441
|
+
access: "create"
|
|
23442
|
+
},
|
|
23387
23443
|
"plateGallery.correctPlateText": {
|
|
23388
23444
|
capName: "plate-gallery",
|
|
23389
23445
|
capScope: "system",
|
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
5
|
+
const require_dist = require("../dist-DI57FC8K.js");
|
|
6
6
|
let _camstack_shm_ring = require("@camstack/shm-ring");
|
|
7
7
|
let node_fs = require("node:fs");
|
|
8
8
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as DeviceType, E as motionDetectionCapability, L as BaseAddon, U as hydrateSchema, x as evaluateZoneRules } from "../dist-
|
|
1
|
+
import { B as DeviceType, E as motionDetectionCapability, L as BaseAddon, U as hydrateSchema, x as evaluateZoneRules } from "../dist-RWGGPwVx.mjs";
|
|
2
2
|
import { FrameRingReaderCache } from "@camstack/shm-ring";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import { join } from "node:path";
|