@camstack/addon-pipeline 1.2.206 → 1.2.207

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.
@@ -1,5 +1,21 @@
1
1
  const require_dist = require("./dist-CNPNWUoG.js");
2
2
  let node_crypto = require("node:crypto");
3
+ //#region src/detection-pipeline/pipeline/landmark-precision-gate.ts
4
+ /**
5
+ * `null` = admit. A verdict = refuse, carrying both numbers so the caller can
6
+ * name them in a log. Pure.
7
+ */
8
+ function landmarkPrecisionVerdict(input) {
9
+ const { detectionShortSidePx, floorPx } = input;
10
+ if (!(floorPx > 0)) return null;
11
+ if (!Number.isFinite(detectionShortSidePx)) return null;
12
+ if (detectionShortSidePx >= floorPx) return null;
13
+ return {
14
+ detectionShortSidePx,
15
+ floorPx
16
+ };
17
+ }
18
+ //#endregion
3
19
  //#region src/detection-pipeline/registry/model-catalogs.ts
4
20
  var HF_REPO = "camstack/camstack-models";
5
21
  var HF_SCRYPTED = "scrypted/plugin-models";
@@ -1219,22 +1235,6 @@ var AUDIO_CLASSIFIER_MODELS = [{
1219
1235
  } }
1220
1236
  }];
1221
1237
  //#endregion
1222
- //#region src/detection-pipeline/pipeline/landmark-precision-gate.ts
1223
- /**
1224
- * `null` = admit. A verdict = refuse, carrying both numbers so the caller can
1225
- * name them in a log. Pure.
1226
- */
1227
- function landmarkPrecisionVerdict(input) {
1228
- const { detectionShortSidePx, floorPx } = input;
1229
- if (!(floorPx > 0)) return null;
1230
- if (!Number.isFinite(detectionShortSidePx)) return null;
1231
- if (detectionShortSidePx >= floorPx) return null;
1232
- return {
1233
- detectionShortSidePx,
1234
- floorPx
1235
- };
1236
- }
1237
- //#endregion
1238
1238
  //#region src/detection-pipeline/registry/step-definitions.ts
1239
1239
  var ANIMAL_10_LABELS = [
1240
1240
  "cat",
@@ -1380,6 +1380,13 @@ var ObjectDetectionStep = class {
1380
1380
  default: .5,
1381
1381
  showValue: true
1382
1382
  },
1383
+ {
1384
+ type: "boolean",
1385
+ key: "motionCropDispatch",
1386
+ label: "Detect on motion-derived crops",
1387
+ description: "Run the second detector pass on EVERY moving region instead of only on regions no full-frame box accounts for. Additive: the full-frame pass still runs, and it stays the only arm that can see a stationary subject. Costs about one extra detector invocation every four frames while something is moving.",
1388
+ default: false
1389
+ },
1383
1390
  {
1384
1391
  type: "slider",
1385
1392
  key: "nmsIouThreshold",
@@ -1,5 +1,21 @@
1
1
  import { N as audioKindId, a as COCO_80_LABELS, o as COCO_TO_MACRO, r as AUDIO_MACRO_LABELS, tt as hfModelUrl } from "./dist-DrKpb33H.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
+ //#region src/detection-pipeline/pipeline/landmark-precision-gate.ts
4
+ /**
5
+ * `null` = admit. A verdict = refuse, carrying both numbers so the caller can
6
+ * name them in a log. Pure.
7
+ */
8
+ function landmarkPrecisionVerdict(input) {
9
+ const { detectionShortSidePx, floorPx } = input;
10
+ if (!(floorPx > 0)) return null;
11
+ if (!Number.isFinite(detectionShortSidePx)) return null;
12
+ if (detectionShortSidePx >= floorPx) return null;
13
+ return {
14
+ detectionShortSidePx,
15
+ floorPx
16
+ };
17
+ }
18
+ //#endregion
3
19
  //#region src/detection-pipeline/registry/model-catalogs.ts
4
20
  var HF_REPO = "camstack/camstack-models";
5
21
  var HF_SCRYPTED = "scrypted/plugin-models";
@@ -1219,22 +1235,6 @@ var AUDIO_CLASSIFIER_MODELS = [{
1219
1235
  } }
1220
1236
  }];
1221
1237
  //#endregion
1222
- //#region src/detection-pipeline/pipeline/landmark-precision-gate.ts
1223
- /**
1224
- * `null` = admit. A verdict = refuse, carrying both numbers so the caller can
1225
- * name them in a log. Pure.
1226
- */
1227
- function landmarkPrecisionVerdict(input) {
1228
- const { detectionShortSidePx, floorPx } = input;
1229
- if (!(floorPx > 0)) return null;
1230
- if (!Number.isFinite(detectionShortSidePx)) return null;
1231
- if (detectionShortSidePx >= floorPx) return null;
1232
- return {
1233
- detectionShortSidePx,
1234
- floorPx
1235
- };
1236
- }
1237
- //#endregion
1238
1238
  //#region src/detection-pipeline/registry/step-definitions.ts
1239
1239
  var ANIMAL_10_LABELS = [
1240
1240
  "cat",
@@ -1380,6 +1380,13 @@ var ObjectDetectionStep = class {
1380
1380
  default: .5,
1381
1381
  showValue: true
1382
1382
  },
1383
+ {
1384
+ type: "boolean",
1385
+ key: "motionCropDispatch",
1386
+ label: "Detect on motion-derived crops",
1387
+ description: "Run the second detector pass on EVERY moving region instead of only on regions no full-frame box accounts for. Additive: the full-frame pass still runs, and it stays the only arm that can see a stationary subject. Costs about one extra detector invocation every four frames while something is moving.",
1388
+ default: false
1389
+ },
1383
1390
  {
1384
1391
  type: "slider",
1385
1392
  key: "nmsIouThreshold",
@@ -4,7 +4,7 @@ Object.defineProperties(exports, {
4
4
  });
5
5
  const require_dist = require("../dist-CNPNWUoG.js");
6
6
  const require_node = require("../node-h-nvNfmU.js");
7
- const require_default_detection_model = require("../default-detection-model-CcDkPxU8.js");
7
+ const require_default_detection_model = require("../default-detection-model-BSYGuA-l.js");
8
8
  const require_lazy_sharp = require("../lazy-sharp-BW3zCwk0.js");
9
9
  const require_event_loop_stall_monitor = require("../event-loop-stall-monitor-DaUBcb13.js");
10
10
  const require_process_memory = require("../process-memory-DL51Hzcr.js");
@@ -1,7 +1,7 @@
1
1
  import { n as __require } from "../chunk-DnnnRqeS.mjs";
2
2
  import { $t as parseJsonUnknown, B as defaultDeviceFor$1, Dt as resolvePoolMemoryPolicy, G as detectionPipelineCapability, It as errMsg, J as enumerateInferenceDevices, Jt as hydrateSchema, Pt as supportedRuntimes$1, Qt as nodePin, S as PoolMemoryWatchdog, Ut as BaseAddon, X as evaluateZoneRules, c as DEFAULT_CLUSTER_STEP_MODELS, gt as pickClusterStepSettings, hn as EventCategory, ht as pickClusterStepModels, in as array, it as loadContributionCapability, k as YAMNET_TO_MACRO, kt as runtimeDevices$1, l as DEFAULT_CLUSTER_STEP_SETTINGS, m as DEVICE_BACKEND_TO_FORMAT, mn as union, nn as sleep, nt as inferModelProvider, pn as string, pt as overlayClusterStepSettings, qt as createEvent, t as APPLE_SA_TO_MACRO, un as object, wt as resolveClusterStepModelId, yt as pipelineExecutorCapability } from "../dist-DrKpb33H.mjs";
3
3
  import { o as readProcessCost } from "../node-C6B8HJW_.mjs";
4
- import { a as ALL_PIPELINE_STEPS, c as getStep, d as landmarkPrecisionVerdict, l as getStepDefinition, n as resolveDefaultDetectionModel, o as ALL_STEPS, r as localFrameRegistry, s as getDefaultModelForFormat, u as resolveModelForFormat } from "../default-detection-model-C_v4levg.mjs";
4
+ import { a as ALL_PIPELINE_STEPS, c as getStep, d as landmarkPrecisionVerdict, l as getStepDefinition, n as resolveDefaultDetectionModel, o as ALL_STEPS, r as localFrameRegistry, s as getDefaultModelForFormat, u as resolveModelForFormat } from "../default-detection-model-C_Pyt1w1.mjs";
5
5
  import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
6
6
  import { n as startEventLoopStallMonitor } from "../event-loop-stall-monitor-DXLNBMkY.mjs";
7
7
  import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-C1F0SJcc.mjs";