@camstack/types 1.2.590 → 1.2.592

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,6 @@
1
1
  import type { PipelineEngineChoice } from '../types/pipeline.js';
2
2
  import type { PipelineExecutionPlane } from '../types/pipeline-step.js';
3
+ import type { NormalizedRect } from '../pipeline/second-pass/small-subject-recovery.js';
3
4
  import type { PipelineSchema } from '../types/pipeline-schema.js';
4
5
  import type { ModelFormat } from '../types/models.js';
5
6
  import type { FrameInput } from '../types/io.js';
@@ -102,6 +103,12 @@ export interface PipelineRunInput {
102
103
  * the camera's live trace stream. Absent ⇒ unchanged behaviour.
103
104
  */
104
105
  readonly replay?: true;
106
+ /**
107
+ * The motion analyzer's fresh merged subjects (D394), normalised to the
108
+ * frame; feeds the motion-guided root crop (D1060). See
109
+ * `pipelineExecutor.runPipeline.motionRegions`. Absent ⇒ full frame.
110
+ */
111
+ readonly motionRegions?: readonly NormalizedRect[];
105
112
  }
106
113
  /**
107
114
  * Singleton capability provided by the pipeline-executor addon.
@@ -59,17 +59,13 @@
59
59
  * offline accuracy evaluation (`addon-benchmark`) plan the SAME crops: one
60
60
  * module, two callers, no copy to drift.
61
61
  */
62
+ import type { z } from 'zod';
63
+ import type { NormalizedRectSchema, PipelineStepInputOutput } from '../../capabilities/pipeline-executor.cap.js';
62
64
  import type { ObjectDetection } from '../../types/detection.js';
63
- import type { PipelineStepInputOutput } from '../../capabilities/pipeline-executor.cap.js';
64
65
  /** The object-detection step id — the first-level detector both recipes run. */
65
66
  export declare const OBJECT_DETECTION_STEP_ID = "object-detection";
66
- /** Fraction of a frame, `[0, 1]` on both axes. */
67
- export interface NormalizedRect {
68
- readonly x: number;
69
- readonly y: number;
70
- readonly w: number;
71
- readonly h: number;
72
- }
67
+ /** Fraction of a frame, `[0, 1]` on both axes. Derived from its wire schema. */
68
+ export type NormalizedRect = z.infer<typeof NormalizedRectSchema>;
73
69
  export interface FrameDims {
74
70
  readonly width: number;
75
71
  readonly height: number;