@camstack/addon-pipeline 1.2.68 → 1.2.70
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 +32 -30
- package/dist/detection-pipeline/index.mjs +32 -30
- package/dist/{dist-CwUPxdAB.mjs → dist-BPaa4_z6.mjs} +525 -9
- package/dist/{dist-Bv9CqUAF.js → dist-cR-pvD_z.js} +525 -9
- package/dist/{event-loop-stall-monitor-D2dL-_bE.mjs → event-loop-stall-monitor-B79REtL2.mjs} +1 -1
- package/dist/{event-loop-stall-monitor-Bz3lx_aY.js → event-loop-stall-monitor-STRdnQWm.js} +1 -1
- package/dist/motion-wasm/index.js +1 -1
- package/dist/motion-wasm/index.mjs +1 -1
- package/dist/pipeline-runner/index.js +8 -5
- package/dist/pipeline-runner/index.mjs +8 -5
- package/dist/recorder/index.js +5195 -3820
- package/dist/recorder/index.mjs +5195 -3820
- package/dist/session-decode/decode-worker-child.js +1 -1
- package/dist/session-decode/decode-worker-child.mjs +1 -1
- package/dist/stream-broker/_stub.js +2 -2
- package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-Cl4eU4eN.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-B-HGBNad.mjs} +3 -3
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-D1CqbPrT.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-DU7u9EJt.mjs → _virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-NjvjJWz-.mjs} +1 -1
- package/dist/stream-broker/{hostInit-_NJ0GBOO.mjs → hostInit-B12DHOv7.mjs} +3 -3
- package/dist/stream-broker/index.js +501 -32
- package/dist/stream-broker/index.mjs +501 -32
- package/dist/stream-broker/remoteEntry.js +1 -1
- package/dist/{worker-protocol-D8M43suz.js → worker-protocol-C7V1qIIA.js} +1 -1
- package/dist/{worker-protocol-0uQE5Lfd.mjs → worker-protocol-CBO8nwQj.mjs} +1 -1
- package/package.json +1 -1
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-ircnzt0s.mjs +0 -26
package/dist/{event-loop-stall-monitor-D2dL-_bE.mjs → event-loop-stall-monitor-B79REtL2.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as COCO_TO_MACRO, i as COCO_80_LABELS, r as AUDIO_MACRO_LABELS, z as hfModelUrl } from "./dist-
|
|
1
|
+
import { a as COCO_TO_MACRO, i as COCO_80_LABELS, r as AUDIO_MACRO_LABELS, z as hfModelUrl } from "./dist-BPaa4_z6.mjs";
|
|
2
2
|
import { PerformanceObserver } from "node:perf_hooks";
|
|
3
3
|
//#region src/detection-pipeline/registry/model-catalogs.ts
|
|
4
4
|
var HF_REPO = "camstack/camstack-models";
|
|
@@ -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-cR-pvD_z.js");
|
|
6
6
|
const require_lazy_sharp = require("../lazy-sharp-CcYuXtsa.js");
|
|
7
7
|
let node_fs = require("node:fs");
|
|
8
8
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as motionDetectionCapability, R as evaluateZoneRules, ft as hydrateSchema, st as BaseAddon, ut as DeviceType } from "../dist-
|
|
1
|
+
import { H as motionDetectionCapability, R as evaluateZoneRules, ft as hydrateSchema, st as BaseAddon, ut as DeviceType } from "../dist-BPaa4_z6.mjs";
|
|
2
2
|
import { t as getSharp } from "../lazy-sharp-B-mb8uWx.mjs";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import { join } from "node:path";
|
|
@@ -3,9 +3,9 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../chunk-emK7D4bc.js");
|
|
6
|
-
const require_dist = require("../dist-
|
|
7
|
-
const require_event_loop_stall_monitor = require("../event-loop-stall-monitor-
|
|
8
|
-
const require_worker_protocol = require("../worker-protocol-
|
|
6
|
+
const require_dist = require("../dist-cR-pvD_z.js");
|
|
7
|
+
const require_event_loop_stall_monitor = require("../event-loop-stall-monitor-STRdnQWm.js");
|
|
8
|
+
const require_worker_protocol = require("../worker-protocol-C7V1qIIA.js");
|
|
9
9
|
const require_hub_hostname = require("../hub-hostname-DAJXlOgV.js");
|
|
10
10
|
const require_lazy_sharp = require("../lazy-sharp-CcYuXtsa.js");
|
|
11
11
|
const require_remote_restream = require("../remote-restream-BYbAsgUf.js");
|
|
@@ -3190,6 +3190,7 @@ var PipelineRunner = class {
|
|
|
3190
3190
|
motionQueue,
|
|
3191
3191
|
detectionQueue,
|
|
3192
3192
|
inferenceTimes: [],
|
|
3193
|
+
shedFrames: 0,
|
|
3193
3194
|
processedCount: 0,
|
|
3194
3195
|
startTime: Date.now(),
|
|
3195
3196
|
phase: initialPhase,
|
|
@@ -3482,7 +3483,7 @@ var PipelineRunner = class {
|
|
|
3482
3483
|
actualFps,
|
|
3483
3484
|
queueDepth: state.motionQueue.size + state.detectionQueue.size,
|
|
3484
3485
|
avgInferenceTimeMs: avgInference,
|
|
3485
|
-
droppedFrames: state.motionQueue.droppedFrames + state.detectionQueue.droppedFrames,
|
|
3486
|
+
droppedFrames: state.motionQueue.droppedFrames + state.detectionQueue.droppedFrames + state.shedFrames,
|
|
3486
3487
|
phase: state.phase
|
|
3487
3488
|
};
|
|
3488
3489
|
}
|
|
@@ -3589,6 +3590,7 @@ var PipelineRunner = class {
|
|
|
3589
3590
|
if (state.inferenceTimes.length > 100) state.inferenceTimes.shift();
|
|
3590
3591
|
state.processedCount++;
|
|
3591
3592
|
if (result) {
|
|
3593
|
+
if (result.shed === true) state.shedFrames++;
|
|
3592
3594
|
await this.notifyCallbacks(deviceId, frame, result, streamType, handle);
|
|
3593
3595
|
const emittedAt = Date.now();
|
|
3594
3596
|
const capturedAt = frame.capturedAt;
|
|
@@ -6102,11 +6104,12 @@ var PipelineRunnerAddon = class PipelineRunnerAddon extends require_dist.BaseAdd
|
|
|
6102
6104
|
let image;
|
|
6103
6105
|
if (!this.executorCoLocated()) {
|
|
6104
6106
|
if (frame.format === "rgb") try {
|
|
6105
|
-
|
|
6107
|
+
const encoded = await (0, sharp.default)(frame.data, { raw: {
|
|
6106
6108
|
width: frame.width,
|
|
6107
6109
|
height: frame.height,
|
|
6108
6110
|
channels: 3
|
|
6109
6111
|
} }).jpeg({ quality: DETECTION_HOP_JPEG_QUALITY }).toBuffer();
|
|
6112
|
+
image = new Uint8Array(encoded);
|
|
6110
6113
|
} catch (err) {
|
|
6111
6114
|
log.debug("runInference: frame JPEG encode failed — falling back to raw pixels", { meta: { error: require_dist.errMsg(err) } });
|
|
6112
6115
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { At as string, Ct as boolean, Dt as number, Et as literal, K as pipelineRunnerCapability, M as deriveDetailCropRect, Mt as EventCategory, Ot as object, St as array, Tt as lazy, U as pickDetailCropConvention, W as pickNativeLeaseOverride, dt as createEvent, gt as nodePin, j as defineCustomActions, k as customAction, s as DEFAULT_DETAIL_CROP_CONVENTION, st as BaseAddon, tt as errMsg, u as DEVICE_BACKEND_TO_FORMAT, xt as _enum } from "../dist-
|
|
2
|
-
import { c as getStepDefinition, t as attributeStall } from "../event-loop-stall-monitor-
|
|
3
|
-
import { a as nativeLeaseSettingEnv, t as isWorkerReply } from "../worker-protocol-
|
|
1
|
+
import { At as string, Ct as boolean, Dt as number, Et as literal, K as pipelineRunnerCapability, M as deriveDetailCropRect, Mt as EventCategory, Ot as object, St as array, Tt as lazy, U as pickDetailCropConvention, W as pickNativeLeaseOverride, dt as createEvent, gt as nodePin, j as defineCustomActions, k as customAction, s as DEFAULT_DETAIL_CROP_CONVENTION, st as BaseAddon, tt as errMsg, u as DEVICE_BACKEND_TO_FORMAT, xt as _enum } from "../dist-BPaa4_z6.mjs";
|
|
2
|
+
import { c as getStepDefinition, t as attributeStall } from "../event-loop-stall-monitor-B79REtL2.mjs";
|
|
3
|
+
import { a as nativeLeaseSettingEnv, t as isWorkerReply } from "../worker-protocol-CBO8nwQj.mjs";
|
|
4
4
|
import { t as resolveHubHostname } from "../hub-hostname-cCknRYKj.mjs";
|
|
5
5
|
import { t as getSharp } from "../lazy-sharp-B-mb8uWx.mjs";
|
|
6
6
|
import { i as withDetectionIntent, n as profileForStreamId, t as isRemoteRestream } from "../remote-restream-Ci7RXNGb.mjs";
|
|
@@ -3182,6 +3182,7 @@ var PipelineRunner = class {
|
|
|
3182
3182
|
motionQueue,
|
|
3183
3183
|
detectionQueue,
|
|
3184
3184
|
inferenceTimes: [],
|
|
3185
|
+
shedFrames: 0,
|
|
3185
3186
|
processedCount: 0,
|
|
3186
3187
|
startTime: Date.now(),
|
|
3187
3188
|
phase: initialPhase,
|
|
@@ -3474,7 +3475,7 @@ var PipelineRunner = class {
|
|
|
3474
3475
|
actualFps,
|
|
3475
3476
|
queueDepth: state.motionQueue.size + state.detectionQueue.size,
|
|
3476
3477
|
avgInferenceTimeMs: avgInference,
|
|
3477
|
-
droppedFrames: state.motionQueue.droppedFrames + state.detectionQueue.droppedFrames,
|
|
3478
|
+
droppedFrames: state.motionQueue.droppedFrames + state.detectionQueue.droppedFrames + state.shedFrames,
|
|
3478
3479
|
phase: state.phase
|
|
3479
3480
|
};
|
|
3480
3481
|
}
|
|
@@ -3581,6 +3582,7 @@ var PipelineRunner = class {
|
|
|
3581
3582
|
if (state.inferenceTimes.length > 100) state.inferenceTimes.shift();
|
|
3582
3583
|
state.processedCount++;
|
|
3583
3584
|
if (result) {
|
|
3585
|
+
if (result.shed === true) state.shedFrames++;
|
|
3584
3586
|
await this.notifyCallbacks(deviceId, frame, result, streamType, handle);
|
|
3585
3587
|
const emittedAt = Date.now();
|
|
3586
3588
|
const capturedAt = frame.capturedAt;
|
|
@@ -6094,11 +6096,12 @@ var PipelineRunnerAddon = class PipelineRunnerAddon extends BaseAddon {
|
|
|
6094
6096
|
let image;
|
|
6095
6097
|
if (!this.executorCoLocated()) {
|
|
6096
6098
|
if (frame.format === "rgb") try {
|
|
6097
|
-
|
|
6099
|
+
const encoded = await sharp(frame.data, { raw: {
|
|
6098
6100
|
width: frame.width,
|
|
6099
6101
|
height: frame.height,
|
|
6100
6102
|
channels: 3
|
|
6101
6103
|
} }).jpeg({ quality: DETECTION_HOP_JPEG_QUALITY }).toBuffer();
|
|
6104
|
+
image = new Uint8Array(encoded);
|
|
6102
6105
|
} catch (err) {
|
|
6103
6106
|
log.debug("runInference: frame JPEG encode failed — falling back to raw pixels", { meta: { error: errMsg(err) } });
|
|
6104
6107
|
}
|