@touchcastllc/napster-companion-api-dev 2.1.0-alpha.0 → 2.1.0-alpha.10

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,24 +0,0 @@
1
- import type { MouthLandmarks } from "../types";
2
- /**
3
- * Creates a rolling average smoother for mouth-opening ratios.
4
- */
5
- export declare function createMouthOpeningSmoothing(windowSize?: number): {
6
- push(value: number): number;
7
- reset(): void;
8
- };
9
- /**
10
- * Calculates mouth opening ratio and normalized mouth landmarks from raw keypoints.
11
- *
12
- * @param keypoints - Raw face mesh keypoints (pixel coordinates)
13
- * @param videoWidth - Video width for normalization
14
- * @param videoHeight - Video height for normalization
15
- * @returns Mouth landmarks (normalized 0–1) and raw opening ratio, or null if landmarks are missing
16
- */
17
- export declare function calculateMouthOpening(keypoints: Array<{
18
- x: number;
19
- y: number;
20
- z?: number;
21
- }>, videoWidth: number, videoHeight: number): {
22
- mouthLandmarks: MouthLandmarks;
23
- openingRatio: number;
24
- } | null;