@camstack/addon-pipeline 1.0.6 → 1.0.8
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 +7 -9
- package/dist/audio-analyzer/index.mjs +3 -4
- package/dist/audio-codec-nodeav/index.js +2 -2
- package/dist/audio-codec-nodeav/index.mjs +2 -2
- package/dist/decoder-nodeav/index.js +1 -1
- package/dist/decoder-nodeav/index.mjs +1 -1
- package/dist/detection-pipeline/index.js +386 -198
- package/dist/detection-pipeline/index.mjs +374 -185
- package/dist/{dist-DsDFrG0I.mjs → dist-BA6DR_jV.mjs} +1798 -1638
- package/dist/{dist-BiUtYscO.js → dist-BLcTVvol.js} +1821 -1637
- package/dist/model-download-service-C7AjBsX9-B0ekM6dF.mjs +301 -0
- package/dist/model-download-service-C7AjBsX9-rXY-VFDk.js +358 -0
- package/dist/motion-wasm/index.js +1 -1
- package/dist/motion-wasm/index.mjs +1 -1
- package/dist/pipeline-runner/index.js +1 -1
- package/dist/pipeline-runner/index.mjs +1 -1
- package/dist/recorder/index.js +6 -7
- package/dist/recorder/index.mjs +4 -4
- package/dist/stream-broker/_stub.js +2 -2
- package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-CbTGCEnd.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-BFy9iszl.mjs} +3 -3
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-COa17XL2.mjs +26 -0
- package/dist/stream-broker/{_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-Dsz9DmNr.mjs → _virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CHcXI1Wf.mjs} +1 -1
- package/dist/stream-broker/{hostInit-BJ3QDdFs.mjs → hostInit-zRy9SzlX.mjs} +3 -3
- package/dist/stream-broker/index.js +27 -28
- package/dist/stream-broker/index.mjs +21 -21
- package/dist/stream-broker/remoteEntry.js +1 -1
- package/embed-dist/assets/{MaskShapeCanvas-DI4BY7W2-B4oJIlgF.js → MaskShapeCanvas-DI4BY7W2-DJ7ztnFv.js} +1 -1
- package/embed-dist/assets/MotionZonesSettings-NcxxQN8r-CQzEnQoq.js +1 -0
- package/embed-dist/assets/{PrivacyMaskSettings-APgPLF7p-CyTsHaor.js → PrivacyMaskSettings-APgPLF7p-Cl0eOy_U.js} +1 -1
- package/embed-dist/assets/index-CSuLwWK-.js +80 -0
- package/embed-dist/index.html +1 -1
- package/package.json +1 -1
- package/python/__pycache__/inference_pool.cpython-313.pyc +0 -0
- package/python/postprocessors/__pycache__/__init__.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/__init__.cpython-313.pyc +0 -0
- package/python/postprocessors/__pycache__/_safety.cpython-313.pyc +0 -0
- package/python/postprocessors/__pycache__/arcface.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/arcface.cpython-313.pyc +0 -0
- package/python/postprocessors/__pycache__/ctc.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/ctc.cpython-313.pyc +0 -0
- package/python/postprocessors/__pycache__/saliency.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/saliency.cpython-313.pyc +0 -0
- package/python/postprocessors/__pycache__/scrfd.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/scrfd.cpython-313.pyc +0 -0
- package/python/postprocessors/__pycache__/softmax.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/softmax.cpython-313.pyc +0 -0
- package/python/postprocessors/__pycache__/yamnet.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/yamnet.cpython-313.pyc +0 -0
- package/python/postprocessors/__pycache__/yolo.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/yolo.cpython-313.pyc +0 -0
- package/python/postprocessors/__pycache__/yolo_seg.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/yolo_seg.cpython-313.pyc +0 -0
- package/dist/chunk-D6vf50IK.js +0 -28
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-3STWM0yI.mjs +0 -26
- package/embed-dist/assets/MotionZonesSettings-C1EEbk2V-CUopGB1R.js +0 -1
- package/embed-dist/assets/index-hwJEVIPM.js +0 -80
|
@@ -2,13 +2,12 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const
|
|
6
|
-
const require_dist = require("../dist-
|
|
5
|
+
const require_model_download_service_C7AjBsX9 = require("../model-download-service-C7AjBsX9-rXY-VFDk.js");
|
|
6
|
+
const require_dist = require("../dist-BLcTVvol.js");
|
|
7
7
|
let node_fs = require("node:fs");
|
|
8
|
-
node_fs =
|
|
8
|
+
node_fs = require_model_download_service_C7AjBsX9.__toESM(node_fs);
|
|
9
9
|
let node_path = require("node:path");
|
|
10
|
-
node_path =
|
|
11
|
-
let _camstack_system = require("@camstack/system");
|
|
10
|
+
node_path = require_model_download_service_C7AjBsX9.__toESM(node_path);
|
|
12
11
|
//#region src/audio-analyzer/audio-pipeline.ts
|
|
13
12
|
/**
|
|
14
13
|
* Create the appropriate audio pipeline.
|
|
@@ -83,7 +82,7 @@ var YamnetPythonPipeline = class {
|
|
|
83
82
|
url: YAMNET_MODEL_URL,
|
|
84
83
|
dest: modelPath
|
|
85
84
|
} });
|
|
86
|
-
await
|
|
85
|
+
await require_model_download_service_C7AjBsX9.downloadFile(YAMNET_MODEL_URL, modelPath);
|
|
87
86
|
this.log.info("YAMNet ONNX model downloaded", { meta: { sizeBytes: node_fs.statSync(modelPath).size } });
|
|
88
87
|
}
|
|
89
88
|
if (!node_fs.existsSync(labelsPath)) {
|
|
@@ -91,7 +90,7 @@ var YamnetPythonPipeline = class {
|
|
|
91
90
|
url: YAMNET_LABELS_URL,
|
|
92
91
|
dest: labelsPath
|
|
93
92
|
} });
|
|
94
|
-
await
|
|
93
|
+
await require_model_download_service_C7AjBsX9.downloadFile(YAMNET_LABELS_URL, labelsPath);
|
|
95
94
|
}
|
|
96
95
|
const pythonDir = resolveAudioPythonDir();
|
|
97
96
|
if (this.installPythonRequirements) await this.installPythonRequirements(node_path.join(pythonDir, "requirements-audio.txt"));
|
|
@@ -779,10 +778,9 @@ var AudioAnalyzerAddon = class extends require_dist.BaseAddon {
|
|
|
779
778
|
if (!this.config.probedBestAudioBackend) this.reprobeAudioEngine().catch((err) => {
|
|
780
779
|
logger.warn("audio: auto-reprobe failed", { meta: { error: err instanceof Error ? err.message : String(err) } });
|
|
781
780
|
});
|
|
782
|
-
const self = this;
|
|
783
781
|
const deviceSettingsResolver = async (deviceId) => {
|
|
784
782
|
try {
|
|
785
|
-
const stepSettings = (await
|
|
783
|
+
const stepSettings = (await this.ctx.api.pipelineOrchestrator.resolvePipeline.query({ deviceId })).audio?.settings ?? {};
|
|
786
784
|
return {
|
|
787
785
|
minConfidence: typeof stepSettings["minConfidence"] === "number" ? stepSettings["minConfidence"] : .3,
|
|
788
786
|
allowedClasses: Array.isArray(stepSettings["enabledAudioClasses"]) ? stepSettings["enabledAudioClasses"] : []
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __require } from "../chunk-BdkLduGY.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { B as BaseAddon, E as mapAudioLabelToMacro, J as hydrateSchema, g as audioAnalyzerCapability, h as audioAnalysisCapability, l as HF_BASE_URL, n as AUDIO_BACKEND_CHOICES, o as DEFAULT_AUDIO_ANALYZER_CONFIG, z as errMsg } from "../dist-BA6DR_jV.mjs";
|
|
3
|
+
import { r as downloadFile } from "../model-download-service-C7AjBsX9-B0ekM6dF.mjs";
|
|
3
4
|
import * as fs from "node:fs";
|
|
4
5
|
import * as path$1 from "node:path";
|
|
5
|
-
import { downloadFile } from "@camstack/system";
|
|
6
6
|
//#region src/audio-analyzer/audio-pipeline.ts
|
|
7
7
|
/**
|
|
8
8
|
* Create the appropriate audio pipeline.
|
|
@@ -773,10 +773,9 @@ var AudioAnalyzerAddon = class extends BaseAddon {
|
|
|
773
773
|
if (!this.config.probedBestAudioBackend) this.reprobeAudioEngine().catch((err) => {
|
|
774
774
|
logger.warn("audio: auto-reprobe failed", { meta: { error: err instanceof Error ? err.message : String(err) } });
|
|
775
775
|
});
|
|
776
|
-
const self = this;
|
|
777
776
|
const deviceSettingsResolver = async (deviceId) => {
|
|
778
777
|
try {
|
|
779
|
-
const stepSettings = (await
|
|
778
|
+
const stepSettings = (await this.ctx.api.pipelineOrchestrator.resolvePipeline.query({ deviceId })).audio?.settings ?? {};
|
|
780
779
|
return {
|
|
781
780
|
minConfidence: typeof stepSettings["minConfidence"] === "number" ? stepSettings["minConfidence"] : .3,
|
|
782
781
|
allowedClasses: Array.isArray(stepSettings["enabledAudioClasses"]) ? stepSettings["enabledAudioClasses"] : []
|
|
@@ -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-BLcTVvol.js");
|
|
6
6
|
const require_codec_runtime = require("../codec-runtime-BOk-13PN.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
//#region src/audio-codec-nodeav/addon/index.ts
|
|
@@ -87,7 +87,7 @@ var AudioCodecNodeAvAddon = class extends require_dist.BaseAddon {
|
|
|
87
87
|
clearInterval(this.reaperTimer);
|
|
88
88
|
this.reaperTimer = null;
|
|
89
89
|
}
|
|
90
|
-
for (const s of
|
|
90
|
+
for (const s of this.sessions.values()) this.disposeSession(s);
|
|
91
91
|
this.sessions.clear();
|
|
92
92
|
}
|
|
93
93
|
async listSupportedCodecs() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as BaseAddon, _ as audioCodecCapability, z as errMsg } from "../dist-BA6DR_jV.mjs";
|
|
2
2
|
import { t as DecodeRuntime } from "../codec-runtime-BsqlEjPi.mjs";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
//#region src/audio-codec-nodeav/addon/index.ts
|
|
@@ -83,7 +83,7 @@ var AudioCodecNodeAvAddon = class extends BaseAddon {
|
|
|
83
83
|
clearInterval(this.reaperTimer);
|
|
84
84
|
this.reaperTimer = null;
|
|
85
85
|
}
|
|
86
|
-
for (const s of
|
|
86
|
+
for (const s of this.sessions.values()) this.disposeSession(s);
|
|
87
87
|
this.sessions.clear();
|
|
88
88
|
}
|
|
89
89
|
async listSupportedCodecs() {
|
|
@@ -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-BLcTVvol.js");
|
|
6
6
|
let _camstack_shm_ring = require("@camstack/shm-ring");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
//#region src/decoder-nodeav/frame-ring-sink.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as BaseAddon, b as decoderCapability, f as RingBuffer, s as DEFAULT_DECODER_HWACCEL_CONFIG, u as HWACCEL_OPTIONS, z as errMsg } from "../dist-BA6DR_jV.mjs";
|
|
2
2
|
import { FrameRingReaderCache, FrameRingWriter, MIN_RING_SLOTS, computeSegmentSize, computeSlotByteLength, createSegment, deriveSlotCount } from "@camstack/shm-ring";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
//#region src/decoder-nodeav/frame-ring-sink.ts
|