Free Motion Capture for Everyone πβ¨
TypeScript
Skeleton refitting and UI updates (#843)
Aaron Cherian4bb362815ccc
diff --git a/freemocap-ui/package-lock.json b/freemocap-ui/package-lock.jsonindex 7d4fa251..2e76e577 100644--- a/freemocap-ui/package-lock.json+++ b/freemocap-ui/package-lock.json@@ -1,12 +1,12 @@{"name": "freemocap",- "version": "2.0.0-alpha.1",+ "version": "2.0.0-alpha.18","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "freemocap",- "version": "2.0.0-alpha.1",+ "version": "2.0.0-alpha.18","license": "AGPL-3.0-or-later","dependencies": {"@dnd-kit/core": "^6.3.1",diff --git a/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelineConfigTree.tsx b/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelineConfigTree.tsxindex 3d04fd66..b9b8a184 100644--- a/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelineConfigTree.tsx+++ b/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelineConfigTree.tsx@@ -395,9 +395,9 @@ export const RealtimePipelineConfigTree: React.FC<PipelineConfigTreeProps> = ({><div className="p-1 pl-4 flex flex-col gap-1"><p className="text sm text-gray">- Skeleton fitter learns bone lengths online. Reset forgets- everything and re-seeds from anthropometric priors β the next- frame re-fits from scratch.+ Skeleton fitter holds each bone at the median length measured+ over the last ~10s. Reset clears that window, so it re-fits from+ anthropometric priors over the next few seconds.</p><buttonclassName="button sm"diff --git a/freemocap-ui/src/components/control-panels/server-connection/useServerPanel.ts b/freemocap-ui/src/components/control-panels/server-connection/useServerPanel.tsindex 34a83621..cc8ff2b0 100644--- a/freemocap-ui/src/components/control-panels/server-connection/useServerPanel.ts+++ b/freemocap-ui/src/components/control-panels/server-connection/useServerPanel.ts@@ -63,8 +63,7 @@ export function useServerPanel(): ServerPanelState {// Persisted UI stateconst [expanded, setExpanded] = useState(() => loadFromStorage(STORAGE_KEYS.PANEL_EXPANDED, false));const [selectedExePath, setSelectedExePath] = useState(() => loadFromStorage(STORAGE_KEYS.SELECTED_EXE_PATH, ''));- const [autoLaunchServer, setAutoLaunchServer] = useState(() => loadFromStorage(STORAGE_KEYS.AUTO_LAUNCH_SERVER, true));- const [autoConnectWs, setAutoConnectWs] = useState(() => loadFromStorage(STORAGE_KEYS.AUTO_CONNECT_WS, true));+ const [autoLaunchServer, setAutoLaunchServer] = useState(() => import.meta.env.DEV ? false : loadFromStorage(STORAGE_KEYS.AUTO_LAUNCH_SERVER, true)); const [autoConnectWs, setAutoConnectWs] = useState(() => loadFromStorage(STORAGE_KEYS.AUTO_CONNECT_WS, true));const [serverHost, setServerHost] = useState(() => loadFromStorage(STORAGE_KEYS.SERVER_HOST, DEFAULT_HOST));const [serverPort, setServerPort] = useState(() => loadFromStorage(STORAGE_KEYS.SERVER_PORT, DEFAULT_PORT));diff --git a/freemocap-ui/src/components/log-terminal/LogTerminal.tsx b/freemocap-ui/src/components/log-terminal/LogTerminal.tsxindex 6f52cedc..697a8ec2 100644--- a/freemocap-ui/src/components/log-terminal/LogTerminal.tsx+++ b/freemocap-ui/src/components/log-terminal/LogTerminal.tsx@@ -225,7 +225,7 @@ const LogCollapsedView = ({ getLogStore, selectedLevels }: { getLogStore: Returnconst firstLine = lastEntry.message.split("\n")[0];return (- <div className="log-collapsed-summary flex items-center h-full gap-1 overflow-hidden">+ <div className="log-collapsed-summary text-disabled flex items-center h-full gap-1 overflow-hidden"><p className="text bg text-gray">{t("serverLogs")}</p><span className={clsx("log-activity-dot", logActive && "active")} /><span className={clsx("log-level-badge", level)}>{lastEntry.levelname}</span>diff --git a/freemocap-ui/src/components/mocap-setup/mocap-detector-settings.tsx b/freemocap-ui/src/components/mocap-setup/mocap-detector-settings.tsxindex cff87685..a85ec751 100644--- a/freemocap-ui/src/components/mocap-setup/mocap-detector-settings.tsx+++ b/freemocap-ui/src/components/mocap-setup/mocap-detector-settings.tsx@@ -1,8 +1,9 @@import React, { useEffect, useRef } from 'react';import SubactionHeader from '@/components/ui-components/SubactionHeader';import ValueSelector from '@/components/ui-components/ValueSelector';+import SegmentedControl from '@/components/ui-components/SegmentedControl';import { useMocap } from '@/hooks/useMocap';-import { DetectorType, MediapipeModelComplexity, RTMPOSE_MODELS } from '@/store/slices/mocap';+import { DetectorType, MediapipeModelComplexity, RTMPOSE_MODELS, RTMPoseModelName } from '@/store/slices/mocap';interface MOCAPDetectorSettingsProps {open: boolean;@@ -69,15 +70,16 @@ const MOCAPDetectorSettings: React.FC<<div className="flex p-1 flex-row gap-1 items-center justify-content-space-between"><span className="text-sm">Detector</span><div className="flex flex-row gap-1">- {(["rtmpose", "mediapipe"] as DetectorType[]).map((type) => (- <button- key={type}- className={`button sm br-1 ${(detectorType ?? "rtmpose") === type ? "primary accent" : "quaternary"}`}- onClick={() => setDetectorType(type)}- >- {type === "rtmpose" ? "RTMPose" : "MediaPipe"}- </button>- ))}+ <SegmentedControl+ size="sm"+ className="segmented-control-sm bg-darkgray"+ value={detectorType ?? "rtmpose"}+ options={[+ { label: "RTMPose", value: "rtmpose" },+ { label: "MediaPipe", value: "mediapipe" },+ ]}+ onChange={(value) => setDetectorType(value as DetectorType)}+ /></div></div>@@ -92,15 +94,15 @@ const MOCAPDetectorSettings: React.FC<<div className="flex p-1 flex-row gap-1 items-center justify-content-space-between"><span className="text-sm">Model</span><div className="flex flex-row gap-1">- {RTMPOSE_MODELS.map(({ label, value }) => (- <button- key={value}- className={`button sm br-1 ${(rtmPoseModelName ?? "rtmw-x-l_256x192") === value ? "primary accent" : "quaternary"}`}- onClick={() => setRtmPoseModelName(value)}- >- {label}- </button>- ))}+ <SegmentedControl+ size="sm"+ className="segmented-control-sm bg-darkgray"+ value={rtmPoseModelName ?? "rtmw-x-l_256x192"}+ options={RTMPOSE_MODELS}+ onChange={(value) =>+ setRtmPoseModelName(value as RTMPoseModelName)+ }+ /></div></div><div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">@@ -125,15 +127,13 @@ const MOCAPDetectorSettings: React.FC<<div className="flex p-1 flex-row gap-1 items-center justify-content-space-between"><span className="text-sm">Pose model size</span><div className="flex flex-row gap-1">- {MEDIAPIPE_COMPLEXITIES.map(({ label, value }) => (- <button- key={value}- className={`button sm br-1 ${(mediapipeModelComplexity ?? "heavy") === value ? "primary accent" : "quaternary"}`}- onClick={() => setMediapipeModelComplexity(value)}- >- {label}- </button>- ))}+ <SegmentedControl+ size="sm"+ className="segmented-control-sm bg-darkgray"+ value={mediapipeModelComplexity ?? "heavy"}+ options={MEDIAPIPE_COMPLEXITIES}+ onChange={(value) => setMediapipeModelComplexity(value as MediapipeModelComplexity)}+ /></div></div><div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">diff --git a/freemocap-ui/src/components/mocap-setup/mocap-postprocess-settings.tsx b/freemocap-ui/src/components/mocap-setup/mocap-postprocess-settings.tsxnew file mode 100644index 00000000..9d927e57--- /dev/null+++ b/freemocap-ui/src/components/mocap-setup/mocap-postprocess-settings.tsx@@ -0,0 +1,91 @@+import React from "react";+import { useAppDispatch, useAppSelector } from "@/store/hooks";+import {+ posthocFilterConfigUpdated,+ selectPosthocFilterConfig+} from "@/store/slices/mocap";++import ValueSelector from "@/components/ui-components/ValueSelector"+import SubactionHeader from "../ui-components/SubactionHeader";++const PosthocFilterSettings:React.FC = () => {+ const dispatch = useAppDispatch();+ const config = useAppSelector(selectPosthocFilterConfig)+ const maximumCutoff = Math.max(+ 0.1,+ config.sampling_rate/2 - 0.1+ );++ return (+ <div className = "flex flex-col gap-1">+ <SubactionHeader text = "Butterworth Low-Pass Filter" />++ <p className = "text sm text-gray p-1">+ Method: Butterworth low-pass+ </p>++ <div className = "flex flex-row p-1 items-center justify-content-space-between">+ <span className = "text sm"> Sampling Rate </span>+ <ValueSelector+ value = {config.sampling_rate}+ min = {1.0}+ max = {1200.0}+ step = {1}+ unit = "Hz"+ onChange = {(sampling_rate) => {+ const newMaximumCutoff = Math.max(+ 0.1,+ sampling_rate/2 - 0.1,+ );++ dispatch(+ posthocFilterConfigUpdated({+ sampling_rate,+ cutoff: Math.min(+ config.cutoff,+ newMaximumCutoff+ ),+ }),+ );+ }}+ />+ </div>++ <div className = "flex flex-row p-1 items-center justify-content-space-between">+ <span className = "text sm"> Cutoff (Hz)</span>++ <ValueSelector+ value = {config.cutoff}+ min = {0}+ max = {maximumCutoff}+ step = {1}+ unit = "Hz"+ onChange = {(cutoff) =>+ dispatch(+ posthocFilterConfigUpdated({cutoff})+ )+ }+ />+ </div>++ <div className="flex flex-row p-1 items-center justify-content-space-between">+ <span className="text sm">Order</span>++ <ValueSelector+ value={config.order}+ min={1}+ max={100}+ step={1}+ unit=""+ onChange={(order) =>+ dispatch(+ posthocFilterConfigUpdated({order}),+ )+ }+ />+ </div>+ </div>+ );+};++export default PosthocFilterSettings;\ No newline at end of filediff --git a/freemocap-ui/src/components/mocap-setup/mocap-setup-modal.tsx b/freemocap-ui/src/components/mocap-setup/mocap-setup-modal.tsxindex 716e3261..2e99aecc 100644--- a/freemocap-ui/src/components/mocap-setup/mocap-setup-modal.tsx+++ b/freemocap-ui/src/components/mocap-setup/mocap-setup-modal.tsx@@ -4,9 +4,10 @@ import SubactionHeader from "@/components/ui-components/SubactionHeader";import ProcessingDirectorySettings from "@/components/mocap-setup/mocap-processing-directory";import CalibrationModule from "@/components/pipeline-progress/calibration-progress/calibration-module";-import MOCAPthreeDReconstructionSettings from "@/components/mocap-setup/mocap-3dreconstruction-settings";+import PosthocFilterSettings from "@/components/mocap-setup/mocap-postprocess-settings";import MOCAPDetectorSettings from "@/components/mocap-setup/mocap-detector-settings";import MOCAPBlenderSettings from "@/components/mocap-setup/mocap-blender-settings";+import TriangulationSettings from "@/components/mocap-setup/mocap-triangulation-settings";import { useMocap } from "@/hooks/useMocap";type MocapMode = "recording" | "playback";@@ -44,7 +45,7 @@ const MocapSetupModal: React.FC<MocapSetupModalProps> = ({return "Cannot process recording";}, [canProcessMocapRecording, isRecording, isLoading, mocapRecordingPath, directoryInfo, calibrationTomlPath]);const [activeButton, setActiveButton] = useState<- "button1" | "button2" | "button3" | "button4" | "button5"+ "button1" | "button2" | "button3" | "button4" | "button5" | "button6">("button1");const scrollContainerRef = useRef<HTMLDivElement>(null);@@ -53,9 +54,10 @@ const MocapSetupModal: React.FC<MocapSetupModalProps> = ({const panel3Ref = useRef<HTMLDivElement>(null);const panel4Ref = useRef<HTMLDivElement>(null);const panel5Ref = useRef<HTMLDivElement>(null);+ const panel6Ref = useRef<HTMLDivElement>(null);const scrollToPanel = useCallback((panelIndex: number) => {- const refs = [panel1Ref, panel2Ref, panel3Ref, panel4Ref, panel5Ref];+ const refs = [panel1Ref, panel2Ref, panel3Ref, panel4Ref, panel5Ref, panel6Ref];const targetRef = refs[panelIndex];if (targetRef.current && scrollContainerRef.current) {targetRef.current.scrollIntoView({@@ -64,12 +66,13 @@ const MocapSetupModal: React.FC<MocapSetupModalProps> = ({inline: "nearest",});setActiveButton(- ["button1", "button2", "button3", "button4", "button5"][panelIndex] as+ ["button1", "button2", "button3", "button4", "button5", "button6"][panelIndex] as| "button1"| "button2"| "button3"| "button4"- | "button5",+ | "button5"+ | "button6",);}}, []);@@ -86,6 +89,7 @@ const MocapSetupModal: React.FC<MocapSetupModalProps> = ({else if (id === "panel3") setActiveButton("button3");else if (id === "panel4") setActiveButton("button4");else if (id === "panel5") setActiveButton("button5");+ else if (id === "panel6") setActiveButton("button6");}});},@@ -96,7 +100,7 @@ const MocapSetupModal: React.FC<MocapSetupModalProps> = ({},);- const panels = [panel1Ref, panel2Ref, panel3Ref, panel4Ref, panel5Ref];+ const panels = [panel1Ref, panel2Ref, panel3Ref, panel4Ref, panel5Ref, panel6Ref];panels.forEach((ref) => {if (ref.current) observer.observe(ref.current);});@@ -137,23 +141,31 @@ const MocapSetupModal: React.FC<MocapSetupModalProps> = ({onClick={() => scrollToPanel(1)}/><ButtonSm- text="3D Reconstruction"+ text="Detector"buttonType={activeButton === "button3" ? "activated" : "idle"}className="full-width quaternary"onClick={() => scrollToPanel(2)}/>+<ButtonSm- text="Detector"- buttonType={activeButton === "button4" ? "activated" : "idle"}- className="full-width quaternary"- onClick={() => scrollToPanel(3)}+ text = "3D Triangulation"+ buttonType = {activeButton === "button4" ? "activated" : "idle"}+ className = "full-width quaternary"+ onClick = {() => scrollToPanel(3)}/>+<ButtonSm- text="Blender"+ text="Post Processing"buttonType={activeButton === "button5" ? "activated" : "idle"}className="full-width quaternary"onClick={() => scrollToPanel(4)}/>+ <ButtonSm+ text="Blender"+ buttonType={activeButton === "button6" ? "activated" : "idle"}+ className="full-width quaternary"+ onClick={() => scrollToPanel(5)}+ /></div>{/* Column 2 - Dynamic Content */}@@ -182,32 +194,38 @@ const MocapSetupModal: React.FC<MocapSetupModalProps> = ({/></div>- {/* Panel 3 - 3D Reconstruction */}+ {/* Panel 3 - Detector */}<divref={panel3Ref}data-panel="panel3"className="bg-secondary p-2 br-1">- <MOCAPthreeDReconstructionSettings- open={true}- onClose={() => {}}- />+ <MOCAPDetectorSettings open={true} onClose={() => {}} /></div>- {/* Panel 4 - Detector */}+ {/* Panel 4 - Triangulation */}<divref={panel4Ref}data-panel="panel4"className="bg-secondary p-2 br-1">- <MOCAPDetectorSettings open={true} onClose={() => {}} />+ <TriangulationSettings /></div>- {/* Panel 5 - Blender */}+ {/* Panel 5 - Post Processing */}<divref={panel5Ref}data-panel="panel5"className="bg-secondary p-2 br-1"+ >+ <PosthocFilterSettings />+ </div>++ {/* Panel 6 - Blender */}+ <div+ ref={panel6Ref}+ data-panel="panel6"+ className="bg-secondary p-2 br-1"><MOCAPBlenderSettings open={true} onClose={() => {}} /></div>diff --git a/freemocap-ui/src/components/mocap-setup/mocap-triangulation-settings.tsx b/freemocap-ui/src/components/mocap-setup/mocap-triangulation-settings.tsxnew file mode 100644index 00000000..762c41ba--- /dev/null+++ b/freemocap-ui/src/components/mocap-setup/mocap-triangulation-settings.tsx@@ -0,0 +1,91 @@+import React from "react";+import { useAppDispatch, useAppSelector } from "../../store/hooks";+import {+ triangulationConfigUpdated,+ selectMocapTriangulationConfig+} from "../../store/slices/mocap";++import ValueSelector from "../ui-components/ValueSelector";+import ToggleComponent from "../ui-components/ToggleComponent";+import SubactionHeader from "../ui-components/SubactionHeader";++const TriangulationSettings: React.FC = () => {+ const dispatch = useAppDispatch();+ const config = useAppSelector(selectMocapTriangulationConfig);++ return (+ <div className="flex flex-col gap-1">+ <SubactionHeader text="Triangulation Settings" />++ <ToggleComponent+ text="Use outlier rejection"+ isToggled={config.use_outlier_rejection}+ onToggle={(checked) =>+ dispatch(+ triangulationConfigUpdated({+ use_outlier_rejection: checked,+ })+ )+ }+ />++ <div className={`flex flex-row p-1 items-center justify-content-space-between ${config.use_outlier_rejection ? '' : 'disabled'}`}>+ <div className="flex items-center gap-1 flex-wrap">+ <span className="icon icon-size-20 subcat-icon"></span>+ <span className="text sm"> Minimum Cameras for Triangulation </span>+ </div>+ <ValueSelector+ value={config.minimum_cameras_for_triangulation}+ min={2}+ max={100}+ onChange={(minimum_cameras_for_triangulation) =>+ dispatch(+ triangulationConfigUpdated({+ minimum_cameras_for_triangulation: minimum_cameras_for_triangulation,+ })+ )+ }+ />+ </div>++ <div className={`flex flex-row p-1 items-center justify-content-space-between ${config.use_outlier_rejection ? '' : 'disabled'}`}>+ <div className="flex items-center gap-1 flex-wrap">+ <span className="icon icon-size-20 subcat-icon"></span>+ <span className="text sm"> Maximum Cameras to Drop </span>+ </div>+ <ValueSelector+ value={config.maximum_cameras_to_drop}+ min={0}+ max={100}+ onChange={(maximum_cameras_to_drop) =>+ dispatch(+ triangulationConfigUpdated({+ maximum_cameras_to_drop: maximum_cameras_to_drop,+ })+ )+ }+ />+ </div>++ <div className={`flex flex-row p-1 items-center justify-content-space-between ${config.use_outlier_rejection ? '' : 'disabled'}`}>+ <div className="flex items-center gap-1 flex-wrap">+ <span className="icon icon-size-20 subcat-icon"></span>+ <span className="text sm"> Target Reprojection Error </span>+ </div>+ <ValueSelector+ value={config.target_reprojection_error}+ min={0.001}+ max={1.0}+ step={0.01}+ onChange={(target_reprojection_error) =>+ dispatch(+ triangulationConfigUpdated({target_reprojection_error})+ )+ }+ />+ </div>+ </div>+ );+};++export default TriangulationSettings;\ No newline at end of filediff --git a/freemocap-ui/src/components/pipeline-progress/realtime/realtimepipeline-mediapipedetector-settings.tsx b/freemocap-ui/src/components/pipeline-progress/realtime/realtimepipeline-mediapipedetector-settings.tsxindex 7dfa2948..808ec451 100644--- a/freemocap-ui/src/components/pipeline-progress/realtime/realtimepipeline-mediapipedetector-settings.tsx+++ b/freemocap-ui/src/components/pipeline-progress/realtime/realtimepipeline-mediapipedetector-settings.tsx@@ -2,6 +2,7 @@ import React, { useCallback, useEffect, useRef } from 'react';import SubactionHeader from '@/components/ui-components/SubactionHeader';import IconButton from '@/components/ui-components/IconButton';import ValueSelector from '@/components/ui-components/ValueSelector';+import SegmentedControl from '@/components/ui-components/SegmentedControl';import { useRealtimePipelineSync } from '@/hooks/useRealtimePipelineSync';import { DetectorType, MediapipeModelComplexity, RTMPOSE_MODELS } from '@/store/slices/mocap';import { CameraNodeConfig } from '@/store/slices/realtime/realtime-types';@@ -74,15 +75,16 @@ const RTPSkeletonSetup: React.FC<RTPSkeletonSetupProps> = ({ open, onClose }) =><div className="flex p-1 flex-row gap-1 items-center justify-content-space-between"><span className="text-sm">Detector</span><div className="flex flex-row gap-1">- {(["rtmpose", "mediapipe"] as DetectorType[]).map((type) => (- <button- key={type}- className={`button sm br-1 ${detectorType === type ? "primary accent" : "quaternary"}`}- onClick={() => handleCameraNodeUpdate({ detector_type: type })}- >- {type === "rtmpose" ? "RTMPose" : "MediaPipe"}- </button>- ))}+ <SegmentedControl+ size="sm"+ className="segmented-control-sm bg-darkgray"+ value={detectorType ?? "rtmpose"}+ options={[+ { label: "RTMPose", value: "rtmpose" },+ { label: "MediaPipe", value: "mediapipe" },+ ]}+ onChange={(value) => handleCameraNodeUpdate({ detector_type: value as DetectorType })}+ /></div></div>@@ -97,15 +99,13 @@ const RTPSkeletonSetup: React.FC<RTPSkeletonSetupProps> = ({ open, onClose }) =><div className="flex p-1 flex-row gap-1 items-center justify-content-space-between"><span className="text-sm">Model</span><div className="flex flex-row gap-1">- {RTMPOSE_MODELS.map(({ label, value }) => (- <button- key={value}- className={`button sm br-1 ${(cameraNodeConfig.rtmpose_model_name ?? "rtmw-x-l_256x192") === value ? "primary accent" : "quaternary"}`}- onClick={() => handleCameraNodeUpdate({ rtmpose_model_name: value })}- >- {label}- </button>- ))}+ <SegmentedControl+ size="sm"+ className="segmented-control-sm bg-darkgray"+ value={cameraNodeConfig.rtmpose_model_name ?? "rtmw-x-l_256x192"}+ options={RTMPOSE_MODELS}+ onChange={(value) => handleCameraNodeUpdate({ rtmpose_model_name: value as any })}+ /></div></div>@@ -132,15 +132,13 @@ const RTPSkeletonSetup: React.FC<RTPSkeletonSetupProps> = ({ open, onClose }) =><div className="flex p-1 flex-row gap-1 items-center justify-content-space-between"><span className="text-sm">Model size</span><div className="flex flex-row gap-1">- {MEDIAPIPE_COMPLEXITIES.map(({ label, value }) => (- <button- key={value}- className={`button sm br-1 ${(cameraNodeConfig.mediapipe_model_complexity ?? "lite") === value ? "primary accent" : "quaternary"}`}- onClick={() => handleCameraNodeUpdate({ mediapipe_model_complexity: value })}- >- {label}- </button>- ))}+ <SegmentedControl+ size="sm"+ className="segmented-control-sm bg-darkgray"+ value={cameraNodeConfig.mediapipe_model_complexity ?? "lite"}+ options={MEDIAPIPE_COMPLEXITIES}+ onChange={(value) => handleCameraNodeUpdate({ mediapipe_model_complexity: value as MediapipeModelComplexity })}+ /></div></div>diff --git a/freemocap-ui/src/components/tutorial/TourNav.tsx b/freemocap-ui/src/components/tutorial/TourNav.tsxindex 2b23128f..677c1696 100644--- a/freemocap-ui/src/components/tutorial/TourNav.tsx+++ b/freemocap-ui/src/components/tutorial/TourNav.tsx@@ -13,7 +13,7 @@ export const TourNav: React.FC = () => {const docsUrl = currentStep?.docsUrl;return (- <div className="tour-nav flex flex-col gap-1">+ <div className="tour-nav justify-content-space-between flex flex-row flex-wrap items-center gap-1">{docsUrl && (<ButtonSmiconClass="learn-icon"@@ -24,7 +24,15 @@ export const TourNav: React.FC = () => {onClick={() => window.open(docsUrl, '_blank')}/>)}+ <ButtonSm+ text={t('tour.controls.skip')}+ buttonType="tertiary"+ textColor="text-gray"+ className="tour-skip-link"+ onClick={skip}+ /><span className="tour-step-counter text sm text-gray">{stepLabel}</span>+<div className="tour-nav-buttons flex flex-row items-center gap-1"><ButtonSmtext={t('tour.controls.back')}@@ -49,13 +57,7 @@ export const TourNav: React.FC = () => {onClick={next}/></div>- <ButtonSm- text={t('tour.controls.skip')}- buttonType="tertiary"- textColor="text-gray"- className="tour-skip-link"- onClick={skip}- />+</div>);};diff --git a/freemocap-ui/src/components/ui-components/GridSettingsOverlay.tsx b/freemocap-ui/src/components/ui-components/GridSettingsOverlay.tsxindex 87bb9994..1ea967a2 100644--- a/freemocap-ui/src/components/ui-components/GridSettingsOverlay.tsx+++ b/freemocap-ui/src/components/ui-components/GridSettingsOverlay.tsx@@ -8,6 +8,8 @@ import type {import ToggleComponent from "@/components/ui-components/ToggleComponent";import ValueSelector from "@/components/ui-components/ValueSelector";import IconButton from "@/components/ui-components/IconButton";+import SegmentedControl from "@/components/ui-components/SegmentedControl";+import { Row } from "@/components/ui-components/Row";interface GridSettingsOverlayProps {settings: CameraSettings;@@ -57,112 +59,109 @@ export const GridSettingsOverlay: React.FC<GridSettingsOverlayProps> = ({return (<>- <div className="streaming-bar-setting-action-bar z-2 pos-abs flex flex-row gap-3 top-0 right-0">- <IconButton- icon={isOpen ? "close-icon" : "settings-icon"}- className="icon-size-25 br-2 bg-middark"- onClick={() => setIsOpen(!isOpen)}- title={isOpen ? t("closeSettings") : t("gridSettings")}- />-- {/* SETTINGS PANEL */}- {isOpen && (- <div- className="bg-middark br-2 elevated-sharp flex flex-col gap-2 p-2"- style={{- position: "absolute",- top: 0,- right: 16,- zIndex: 999,- minWidth: 260,- }}- >- <div className="flex flex-col gap-1">- <div className="flex flex-row items-center gap-1">- <span className="icon grid4-icon icon-size-20" />- <p className="text bg text-white">{t("gridColumns")}</p>- </div>-- <ToggleComponent- text={t("auto")}- isToggled={isAuto}- onToggle={handleAutoChange}+ <div data-onboarding="realtime:pipeline" className="streaming-bar-setting-action-bar z-2 pos-abs flex flex-row gap-0 top-0 right-0">+ <div className="live-action-buttons-container flex flex-row gap-4">+++ <div className="grid-settings-button-playback-model live-action-buttons-group-2 flex flex-row items-center gap-1">+ <IconButton++ icon={isOpen ? "close-icon" : "grid2-icon"}+ className="icon-size-32 br-2"+ onClick={() => setIsOpen(!isOpen)}+ title={isOpen ? t("closeSettings") : t("gridSettings")}+ tooltip+ tooltipText="Grid Settings"+ tooltipPosition="pos-bottom-right"/>+ </div>+ </div>- <ValueSelector- value={isAuto ? autoColumns : manualColumns}- min={1}- max={12}- onChange={handleColumnsChange}- />+ <div className="modal-container stream-mode pos-rel">+{/* SETTINGS PANEL */}+ {isOpen && (+ <div+ className="bg-dark border-1 border-black elevated-sharp br-2 elevated-sharp flex flex-col gap-1 p-1 min-h-0"+ style={{+ position: "absolute",+ top: "100%",+ right: 0,+ marginTop: 8,+ zIndex: 999,+ minWidth: 260,+ }}+ >+ <div className="flex flex-col right-0 p-1 gap-1 bg-middark br-1 z-1">+ <Row label="Layout">++ <SegmentedControl+ size="sm"+ className="segmented-control-sm bg-darkgray"+ value={settings.layoutDirection}+ options={[+ { label: "Horizontal", value: "horizontal" },+ { label: "Vertical", value: "vertical" },+ ]}+ onChange={(value) => handleLayoutDirectionChange(value as LayoutDirection)}+ />+ </Row>+ <div className="flex pt-2 flex-row items-center w-full justify-content-space-between p-1">+ {/* <span className="icon grid4-icon icon-size-20" /> */}+ <p className="text bg">{t("gridColumns")}</p>+ <p className="text sm text-gray">+ {isAuto+ ? `Auto: ${autoColumns} Columns`+ : "Enter any positive number"}+ </p>+ </div>+ <div className="flex flex-col gap-2 align-end">- <p className="text sm text-gray">- {isAuto- ? `Auto-detected: ${autoColumns} Columns`- : "Enter any positive number"}- </p>- </div>+ <ToggleComponent+ text={t("auto")}+ isToggled={isAuto}+ onToggle={handleAutoChange}+ />- <div- style={{- height: 1,- backgroundColor: "var(--color-border-secondary)",- }}- />-- <div className="flex flex-col gap-1">- <ToggleComponent- text="3D Viewport"- iconClass="streaming-icon"- isToggled={settings.show3dView}- onToggle={handle3dViewToggle}- />- </div>+ <ValueSelector+ value={isAuto ? autoColumns : manualColumns}+ min={1}+ max={12}+ onChange={handleColumnsChange}+ />++ </div>- {settings.show3dView && (- <>- <div- style={{- height: 1,- backgroundColor: "var(--color-border-secondary)",- }}- />-- <div className="flex flex-col gap-1">- <p className="text bg text-white">Layout</p>-- <div className="flex flex-row gap-1">- <button- className={`button sm flex-1 ${- settings.layoutDirection === "horizontal"- ? "primary"- : "secondary"- }`}- onClick={() =>- handleLayoutDirectionChange("horizontal")- }- >- <p className="text sm">Side by side</p>- </button>-- <button- className={`button sm flex-1 ${- settings.layoutDirection === "vertical"- ? "primary"- : "secondary"- }`}- onClick={() =>- handleLayoutDirectionChange("vertical")- }- >- <p className="text sm">Stacked</p>- </button>+ {/* <div+ style={{+ height: 1,+ backgroundColor: "var(--color-border-secondary)",+ }}+ /> */}++ <div className="pt-3 flex flex-col gap-1">+ <ToggleComponent+ text="3D Viewport"+ iconClass=""+ isToggled={settings.show3dView}+ onToggle={handle3dViewToggle}+ /></div>++ {settings.show3dView && (+ <>+ {/* <div+ style={{+ height: 1,+ backgroundColor: "var(--color-border-secondary)",+ }}+ /> */}++ </>+ )}</div>- </>+ </div>)}</div>- )}</div></>);diff --git a/freemocap-ui/src/components/ui-components/SettingsOverlay.tsx b/freemocap-ui/src/components/ui-components/SettingsOverlay.tsxindex 0cf3e70f..b51d5956 100644--- a/freemocap-ui/src/components/ui-components/SettingsOverlay.tsx+++ b/freemocap-ui/src/components/ui-components/SettingsOverlay.tsx@@ -235,12 +235,15 @@ export const SettingsOverlay: React.FC<SettingsOverlayProps> = ({</div>- <div className="modal-container pos-rel">+ <div className="modal-container stream-mode pos-rel"><IconButtonicon={isOpen ? "close-icon" : "grid2-icon"}className="icon-size-32 br-2"onClick={() => setIsOpen(!isOpen)}title={isOpen ? t("closeSettings") : t("gridSettings")}+ tooltip+ tooltipText="Grid Settings"+ tooltipPosition="pos-bottom-right"/>{/* SETTINGS PANEL */}diff --git a/freemocap-ui/src/components/ui-components/ValueSelector.tsx b/freemocap-ui/src/components/ui-components/ValueSelector.tsxindex a99e9046..dbb75e4f 100644--- a/freemocap-ui/src/components/ui-components/ValueSelector.tsx+++ b/freemocap-ui/src/components/ui-components/ValueSelector.tsx@@ -1,10 +1,20 @@-import React, {useRef} from "react";+import React, {useEffect, useRef, useState} from "react";import IconButton from "@/components/ui-components/IconButton";-/** Rounds to the precision of `step` and clamps to [min, max], avoiding float drift like 0.005 - 0.0005 = 0.0045000000000000005. */-function roundToStep(value: number, step: number, min: number, max: number): number {+/**+ * Rounds to the precision of `step` and clamps to [min, max],+ * avoiding float drift like:+ * 0.005 - 0.0005 = 0.0045000000000000005+ */+function roundToStep(+ value: number,+ step: number,+ min: number,+ max: number+): number {const decimals = (step.toString().split(".")[1] || "").length;const rounded = Number(value.toFixed(decimals));+return Math.max(min, Math.min(max, rounded));}@@ -18,11 +28,88 @@ interface InputWithUnitProps {disabled?: boolean;}-const InputWithUnit: React.FC<InputWithUnitProps> = ({value, onChange, unit = "", min = 1, max = 999, step = 1, disabled = false}) => {+const InputWithUnit: React.FC<InputWithUnitProps> = ({+ value,+ onChange,+ unit = "",+ min = 1,+ max = 999,+ step = 1,+ disabled = false,+}) => {const inputRef = useRef<HTMLInputElement>(null);- const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {- if (e.key === "Enter") {+ /*+ * Keep the user's current text separate from the numeric Redux value.+ *+ * This allows temporary editing states such as:+ * "", "0", "0.", and "0.01"+ */+ const [inputText, setInputText] = useState(String(value));+ const [isEditing, setIsEditing] = useState(false);++ /*+ * Synchronize with external value changes, such as the plus/minus buttons,+ * as long as the user is not currently typing in the field.+ */+ useEffect(() => {+ if (!isEditing) {+ setInputText(String(value));+ }+ }, [value, isEditing]);++ const commitValue = () => {+ const trimmedInput = inputText.trim();+ const parsedValue = Number(trimmedInput);++ /*+ * An empty or invalid value should restore the last valid external+ * value instead of being converted immediately to `min`.+ */+ if (+ trimmedInput === "" ||+ !Number.isFinite(parsedValue)+ ) {+ setInputText(String(value));+ setIsEditing(false);+ return;+ }++ const nextValue = roundToStep(+ parsedValue,+ step,+ min,+ max+ );++ onChange(nextValue);+ setInputText(String(nextValue));+ setIsEditing(false);+ };++ const handleFocus = (+ event: React.FocusEvent<HTMLInputElement>+ ) => {+ setIsEditing(true);++ /*+ * Select the current value when entering the field so that typing+ * immediately replaces it.+ */+ event.currentTarget.select();+ };++ const handleKeyDown = (+ event: React.KeyboardEvent<HTMLInputElement>+ ) => {+ if (event.key === "Enter") {+ inputRef.current?.blur();+ return;+ }++ if (event.key === "Escape") {+ setInputText(String(value));+ setIsEditing(false);inputRef.current?.blur();}};@@ -32,17 +119,25 @@ const InputWithUnit: React.FC<InputWithUnitProps> = ({value, onChange, unit = ""<inputref={inputRef}type="number"- value={value}+ value={inputText}min={min}max={max}step={step}disabled={disabled}- onChange={e => onChange(Math.max(min, Math.min(max, Number(e.target.value) || min)))}- onFocus={e => e.target.select()}+ onChange={(event) =>+ setInputText(event.target.value)+ }+ onFocus={handleFocus}+ onBlur={commitValue}onKeyDown={handleKeyDown}className="input-field text md w-full text-center"/>- {unit && <span className="unit-label text md">{unit}</span>}++ {unit && (+ <span className="unit-label text md">+ {unit}+ </span>+ )}</div>);};@@ -57,18 +152,49 @@ interface ValueSelectorProps {disabled?: boolean;}-const ValueSelector: React.FC<ValueSelectorProps> = ({value, unit = "", min = 1, max = 999, step = 1, onChange, disabled = false}) => {+const ValueSelector: React.FC<ValueSelectorProps> = ({+ value,+ unit = "",+ min = 1,+ max = 999,+ step = 1,+ onChange,+ disabled = false,+}) => {const currentValue = value ?? min;return (- <div className={`value-selector-container flex flex-row items-center gap-2 bg-middark br-1 ${disabled ? "disabled" : ""}`}>+ <div+ className={+ `value-selector-container flex flex-row items-center ` ++ `gap-2 bg-middark br-1 ${disabled ? "disabled" : ""}`+ }+ ><IconButtonicon="minus-icon"- onClick={() => currentValue > min && onChange?.(roundToStep(currentValue - step, step, min, max))}+ onClick={() => {+ if (currentValue > min) {+ onChange?.(+ roundToStep(+ currentValue - step,+ step,+ min,+ max+ )+ );+ }+ }}disabled={disabled || currentValue <= min}- className={`icon-size-25 ${disabled || currentValue <= min ? "deactivated" : ""}`}+ className={+ `icon-size-25 ${+ disabled || currentValue <= min+ ? "deactivated"+ : ""+ }`+ }iconSize="icon-size-20"/>+<InputWithUnitvalue={currentValue}onChange={onChange ?? (() => {})}@@ -78,15 +204,33 @@ const ValueSelector: React.FC<ValueSelectorProps> = ({value, unit = "", min = 1,step={step}disabled={disabled}/>+<IconButtonicon="plus-icon"- onClick={() => currentValue < max && onChange?.(roundToStep(currentValue + step, step, min, max))}+ onClick={() => {+ if (currentValue < max) {+ onChange?.(+ roundToStep(+ currentValue + step,+ step,+ min,+ max+ )+ );+ }+ }}disabled={disabled || currentValue >= max}- className={`icon-size-25 ${disabled || currentValue >= max ? "deactivated" : ""}`}+ className={+ `icon-size-25 ${+ disabled || currentValue >= max+ ? "deactivated"+ : ""+ }`+ }iconSize="icon-size-20"/></div>);};-export default ValueSelector;+export default ValueSelector;\ No newline at end of filediff --git a/freemocap-ui/src/components/ui-components/WelcomeModal.tsx b/freemocap-ui/src/components/ui-components/WelcomeModal.tsxindex 1d1b24ad..489b37ca 100644--- a/freemocap-ui/src/components/ui-components/WelcomeModal.tsx+++ b/freemocap-ui/src/components/ui-components/WelcomeModal.tsx@@ -154,7 +154,7 @@ export const WelcomeModal: React.FC<WelcomeModalProps> = ({ open, onClose }) =>{/* Guided tour launcher β emphasized until the user finishes it once */}<div className="mt-2"><ButtonSm- iconClass="learn-icon"+ iconClass=""text={t('tour.take')}textColor="text-white"className="full-width justify-center primary accent tour-nudge-pulse"@@ -179,7 +179,7 @@ export const WelcomeModal: React.FC<WelcomeModalProps> = ({ open, onClose }) =></div>{/* Bottom links */}- <div className="splash-bottom-links flex flex-col gap-1 pl-1">+ <div className="splash-bottom-links flex flex-col gap-1 pl-2"><ButtonSmiconClass="learn-icon"text={t('documentation')}@@ -188,7 +188,7 @@ export const WelcomeModal: React.FC<WelcomeModalProps> = ({ open, onClose }) =>onClick={() => window.open(EXTERNAL_URLS.DOCS, '_blank')}/><ButtonSm- iconClass=""+ iconClass="empty-icon"text={t('roadmap')}rightSideIcon="externallink"textColor="text-gray"diff --git a/freemocap-ui/src/components/viewport3d/scene/SkeletonFitRitualIndicator.tsx b/freemocap-ui/src/components/viewport3d/scene/SkeletonFitRitualIndicator.tsxdeleted file mode 100644index 3c60ee50..00000000--- a/freemocap-ui/src/components/viewport3d/scene/SkeletonFitRitualIndicator.tsx+++ /dev/null@@ -1,182 +0,0 @@-import {memo, useEffect, useRef, useState, useSyncExternalStore} from "react";-import {useAppSelector} from "@/store/hooks";-import {selectIsPipelineConnected} from "@/store/slices/realtime";-import {useServerOptional} from "@/services/server/server-context";-import type {SkeletonFitStates} from "@/services/server/server-helpers/skeleton-fit-state-store";-import type {SkeletonFitStateSnapshot} from "@/services/server/server-helpers/websocket-message-types";--const FITTED_TOAST_MS = 5000;-// Display-only heuristic: median |captured - seed| / seed above this reads as a bonked fit.-const PRIOR_DEVIATION_WARN = 0.15;--// Higher-priority state wins when several pipelines report at once.-const STATE_PRIORITY: Record<string, number> = {countdown: 3, capturing: 2, fitted: 1, idle: 0};--const EMPTY_STATES: SkeletonFitStates = {};-const NOOP_SUBSCRIBE = () => () => {};-const getEmptyStates = (): SkeletonFitStates => EMPTY_STATES;--function pickMostActive(states: SkeletonFitStates): SkeletonFitStateSnapshot | null {- let best: SkeletonFitStateSnapshot | null = null;- for (const state of Object.values(states)) {- if (state && (best === null || (STATE_PRIORITY[state.state] ?? 0) > (STATE_PRIORITY[best.state] ?? 0))) {- best = state;- }- }- return best;-}--/**- * Renders the segment-fit calibration ritual (armed by the Reset Fitter button)- * as a top-center viewport overlay: countdown β hold-still capture with quality- * hints β "locked" confirmation. State arrives pushed over the websocket- * (server sends only on change); renders nothing while the fitter is idle.- * All gating rules live server-side β this only visualizes the snapshot.- */-export const SkeletonFitRitualIndicator = memo(function SkeletonFitRitualIndicator() {- const isConnected = useAppSelector(selectIsPipelineConnected);- const server = useServerOptional();- const store = server?.getSkeletonFitStateStore();- const states = useSyncExternalStore(- store?.subscribe ?? NOOP_SUBSCRIBE,- store?.getSnapshot ?? getEmptyStates,- );- const snap = pickMostActive(states);-- const [toastAt, setToastAt] = useState<number | null>(null);- // null until the first state is observed, so a ritual that finished before- // this component mounted doesn't replay its "locked" toast.- const prevStateRef = useRef<string | null>(null);-- useEffect(() => {- const state = snap?.state ?? "idle";- const prev = prevStateRef.current;- prevStateRef.current = state;- if (prev === null) return; // baseline observation, not a transition- if (state === "fitted" && prev !== "fitted") {- setToastAt(Date.now());- } else if (state === "countdown" || state === "capturing") {- setToastAt(null); // a (re-)armed ritual clears any stale toast- }- }, [snap]);-- // FITTED is quiescent (no further pushes), so the toast needs its own- // timer to disappear.- useEffect(() => {- if (toastAt === null) return;- const remaining = FITTED_TOAST_MS - (Date.now() - toastAt);- const timer = window.setTimeout(() => setToastAt(null), Math.max(0, remaining));- return () => window.clearTimeout(timer);- }, [toastAt]);-- if (!isConnected || !snap) return null;-- const toastVisible = snap.state === "fitted" && toastAt !== null;- if (snap.state !== "countdown" && snap.state !== "capturing" && !toastVisible) return null;-- return (- <div- className="pos-abs"- style={{- top: 12,- left: "50%",- transform: "translateX(-50%)",- zIndex: 100,- pointerEvents: "none",- minWidth: 260,- textAlign: "center",- background: "rgba(20, 20, 20, 0.85)",- border: "1px solid #444",- borderRadius: 6,- padding: "10px 18px",- color: "#ddd",- userSelect: "none",- }}- >- {snap.state === "countdown" && <CountdownBody remainingS={snap.countdown_remaining_s} />}- {snap.state === "capturing" && <CapturingBody snap={snap} />}- {toastVisible && <FittedBody snap={snap} />}- </div>- );-});--function CountdownBody({remainingS}: {remainingS: number}) {- return (- <>- <div style={{fontSize: "0.75rem", letterSpacing: 2, color: "#aaa"}}>- GET INTO POSITION- </div>- <div style={{fontSize: "2rem", fontWeight: "bold", lineHeight: 1.2}}>- {Math.max(1, Math.ceil(remainingS))}- </div>- <div style={{fontSize: "0.7rem", color: "#888"}}>- skeleton calibration starts at zero β hold still- </div>- </>- );-}--function CapturingBody({snap}: {snap: SkeletonFitStateSnapshot}) {- const progress = Math.min(1, snap.capture_good_streak / Math.max(1, snap.capture_required_good_frames));-- let hint: string;- if (snap.visible_fraction < snap.capture_min_visible_fraction) {- hint = "partial view β fitting what the cameras can see";- } else if (snap.mean_error_px !== null && snap.mean_error_px > snap.capture_max_mean_error_px) {- hint = "hold still β tracking is noisy";- } else {- hint = "capturing calibration framesβ¦";- }-- return (- <>- <div style={{fontSize: "0.75rem", letterSpacing: 2, color: "#aaa"}}>HOLD STILL</div>- <div- style={{- width: 220,- height: 6,- background: "#333",- borderRadius: 3,- margin: "8px auto",- overflow: "hidden",- }}- >- <div- style={{- width: `${progress * 100}%`,- height: "100%",- background: "#4da3ff",- transition: "width 0.2s linear",- }}- />- </div>- <div style={{fontSize: "0.7rem", color: hint.endsWith("β¦") ? "#888" : "#e0a030"}}>- {hint}- </div>- <div style={{fontSize: "0.65rem", color: "#666", marginTop: 4}}>- finishes automatically in {Math.max(1, Math.ceil(snap.capture_timeout_remaining_s))}s- </div>- </>- );-}--function FittedBody({snap}: {snap: SkeletonFitStateSnapshot}) {- const deviation = snap.median_seed_deviation;- const devPct = deviation !== null ? Math.round(deviation * 100) : null;- const devHigh = deviation !== null && deviation > PRIOR_DEVIATION_WARN;-- return (- <>- <div style={{fontSize: "0.8rem", letterSpacing: 1, color: "#8fd18f"}}>- SKELETON LOCKED β {snap.n_fitted_body_bones} bones fitted- </div>- {devPct !== null && (- <div style={{fontSize: "0.7rem", color: devHigh ? "#e0a030" : "#888"}}>- {devHigh- ? `deviates ${devPct}% from priors β check subject height`- : `${devPct}% from priors`}- </div>- )}- </>- );-}diff --git a/freemocap-ui/src/components/viewport3d/scene/ViewportOverlay.tsx b/freemocap-ui/src/components/viewport3d/scene/ViewportOverlay.tsxindex f347e639..d7ce66f8 100644--- a/freemocap-ui/src/components/viewport3d/scene/ViewportOverlay.tsx+++ b/freemocap-ui/src/components/viewport3d/scene/ViewportOverlay.tsx@@ -4,7 +4,6 @@ import { useViewportState } from "./ViewportStateContext";import IconButton from "@/components/ui-components/IconButton";import { useAppDispatch, useAppSelector } from "@/store/hooks";import { resetSkeletonFitter, selectIsPipelineConnected } from "@/store/slices/realtime";-import { SkeletonFitRitualIndicator } from "./SkeletonFitRitualIndicator";interface ViewportOverlayProps {onFitCamera: () => void;@@ -77,7 +76,6 @@ export function ViewportOverlay({return (<>- {isRealtimeConnected && <SkeletonFitRitualIndicator />}<divclassName="viewport-options pos-abs top-0 left-0 p-2 br-1"style={{diff --git a/freemocap-ui/src/services/server/ServerContextProvider.tsx b/freemocap-ui/src/services/server/ServerContextProvider.tsxindex 0764757d..33330ece 100644--- a/freemocap-ui/src/services/server/ServerContextProvider.tsx+++ b/freemocap-ui/src/services/server/ServerContextProvider.tsx@@ -15,10 +15,8 @@ import {isFrontendPayload,isLogRecord,isPosthocProgress,- isSkeletonFitState,isTrackerSchemas,} from "@/services/server/server-helpers/websocket-message-types";-import {SkeletonFitStateStore} from "@/services/server/server-helpers/skeleton-fit-state-store";import {TrackedObjectDefinition} from "@/services/server/server-helpers/tracked-object-definition";import {BLOCK_KIND,@@ -75,7 +73,6 @@ export const ServerContextProvider: React.FC<{ children: ReactNode }> = ({childrconst canvasManagerRef = useRef<CanvasManager | null>(null);const framerateStoreRef = useRef<FramerateStore>(new FramerateStore());const logStoreRef = useRef<LogStore>(new LogStore());- const skeletonFitStateStoreRef = useRef<SkeletonFitStateStore>(new SkeletonFitStateStore());// Latest server-side (backend) FPS stored in a ref for non-reactive accessconst serverFpsRef = useRef<number | null>(null);@@ -157,7 +154,6 @@ export const ServerContextProvider: React.FC<{ children: ReactNode }> = ({childrpendingAckFrameNumberRef.current = null;lastCameraIdsRef.current = [];framerateStoreRef.current.clear();- skeletonFitStateStoreRef.current.clear();keypointsRef.current = null;skeletonRef.current = null;trackerSchemasRef.current = {};@@ -460,8 +456,6 @@ export const ServerContextProvider: React.FC<{ children: ReactNode }> = ({childr}} else if (isAppState(jsonData)) {store.dispatch(serverStateReceived(jsonData));- } else if (isSkeletonFitState(jsonData)) {- skeletonFitStateStoreRef.current.update(jsonData.pipelines);} else {console.warn('[WS] unhandled JSON message:', jsonData.message_type ?? '(no message_type)', jsonData);}@@ -517,10 +511,6 @@ export const ServerContextProvider: React.FC<{ children: ReactNode }> = ({childrreturn logStoreRef.current;}, []);- const getSkeletonFitStateStore = useCallback((): SkeletonFitStateStore => {- return skeletonFitStateStoreRef.current;- }, []);-const subscribeToKeypoints = useCallback((cb: KeypointsCallback): () => void => {keypointsSubscribersRef.current.add(cb);return () => { keypointsSubscribersRef.current.delete(cb); };@@ -593,7 +583,6 @@ export const ServerContextProvider: React.FC<{ children: ReactNode }> = ({childrgetServerFps,getFramerateStore,getLogStore,- getSkeletonFitStateStore,connectedCameraIds,updateServerConnection,subscribeToKeypoints,@@ -607,7 +596,7 @@ export const ServerContextProvider: React.FC<{ children: ReactNode }> = ({childrtrackerSchemas,activeTrackerId,getActiveSchema,- }), [isConnected, isFailed, connectedCameraIds, trackerSchemas, activeTrackerId, connect, disconnect, sendWebsocketMessage, setCanvasForCamera, getFps, getServerFps, getFramerateStore, getLogStore, getSkeletonFitStateStore, updateServerConnection, subscribeToKeypoints, subscribeToSkeleton, subscribeToCenterOfMass, subscribeToXcom, subscribeToBodyKinematics, getLatestKeypoints, getLatestSkeleton, setOverlayVisibility, getActiveSchema]);+ }), [isConnected, isFailed, connectedCameraIds, trackerSchemas, activeTrackerId, connect, disconnect, sendWebsocketMessage, setCanvasForCamera, getFps, getServerFps, getFramerateStore, getLogStore, updateServerConnection, subscribeToKeypoints, subscribeToSkeleton, subscribeToCenterOfMass, subscribeToXcom, subscribeToBodyKinematics, getLatestKeypoints, getLatestSkeleton, setOverlayVisibility, getActiveSchema]);return (<ServerContext.Provider value={contextValue}>diff --git a/freemocap-ui/src/services/server/server-context.ts b/freemocap-ui/src/services/server/server-context.tsindex 70064dec..25d0538b 100644--- a/freemocap-ui/src/services/server/server-context.ts+++ b/freemocap-ui/src/services/server/server-context.ts@@ -1,7 +1,6 @@import { createContext, useContext } from 'react';import type { FramerateStore } from './server-helpers/framerate-store';import type { LogStore } from './server-helpers/log-store';-import type { SkeletonFitStateStore } from './server-helpers/skeleton-fit-state-store';import type { TrackedObjectDefinition } from './server-helpers/tracked-object-definition';import type { Point3d, BodyKinematics } from '@/components/viewport3d';import type { KeypointsCallback, KeypointsFrame } from '@/components/viewport3d/KeypointsSourceContext';@@ -19,7 +18,6 @@ export interface ServerContextValue {getServerFps: () => number | null;getFramerateStore: () => FramerateStore;getLogStore: () => LogStore;- getSkeletonFitStateStore: () => SkeletonFitStateStore;connectedCameraIds: string[];updateServerConnection: (host: string, port: number) => void;subscribeToKeypoints: (cb: KeypointsCallback) => () => void;diff --git a/freemocap-ui/src/services/server/server-helpers/skeleton-fit-state-store.ts b/freemocap-ui/src/services/server/server-helpers/skeleton-fit-state-store.tsdeleted file mode 100644index 36c36095..00000000--- a/freemocap-ui/src/services/server/server-helpers/skeleton-fit-state-store.ts+++ /dev/null@@ -1,35 +0,0 @@-// src/services/server/server-helpers/skeleton-fit-state-store.ts-import type {SkeletonFitStateSnapshot} from "./websocket-message-types";--export type SkeletonFitStates = Record<string, SkeletonFitStateSnapshot | null>;--const EMPTY_STATES: SkeletonFitStates = {};--/**- * Latest per-pipeline segment-fit ritual states, pushed over the websocket.- * Lives in a ref β no Redux, no re-renders of the provider tree. Consumers- * subscribe via useSyncExternalStore; the server only sends on change, so- * notifications arrive exactly when the ritual does something.- */-export class SkeletonFitStateStore {- private states: SkeletonFitStates = EMPTY_STATES;- private readonly listeners = new Set<() => void>();-- update(states: SkeletonFitStates): void {- this.states = states;- this.listeners.forEach((listener) => listener());- }-- getSnapshot = (): SkeletonFitStates => this.states;-- subscribe = (listener: () => void): (() => void) => {- this.listeners.add(listener);- return () => {- this.listeners.delete(listener);- };- };-- clear(): void {- this.update(EMPTY_STATES);- }-}diff --git a/freemocap-ui/src/services/server/server-helpers/websocket-message-types.ts b/freemocap-ui/src/services/server/server-helpers/websocket-message-types.tsindex 4f1f6e89..bff4c469 100644--- a/freemocap-ui/src/services/server/server-helpers/websocket-message-types.ts+++ b/freemocap-ui/src/services/server/server-helpers/websocket-message-types.ts@@ -89,39 +89,6 @@ export function isTrackerSchemas(data: any): data is TrackerSchemasMessage {);}-/**- * Segment-fit calibration ritual state for one pipeline β pushed by the- * backend whenever it changes (snake_case, straight off the dataclass).- */-export interface SkeletonFitStateSnapshot {- state: string; // "idle" | "countdown" | "capturing" | "fitted"- countdown_remaining_s: number;- capture_good_streak: number;- capture_required_good_frames: number;- capture_min_visible_fraction: number;- capture_max_mean_error_px: number;- capture_timeout_remaining_s: number;- visible_fraction: number;- mean_error_px: number | null;- n_fitted_body_bones: number;- median_seed_deviation: number | null;-}--export interface SkeletonFitStateWsMessage {- message_type: 'skeleton_fit_state';- pipelines: Record<string, SkeletonFitStateSnapshot | null>;-}--export function isSkeletonFitState(data: any): data is SkeletonFitStateWsMessage {- return (- data &&- typeof data === 'object' &&- data.message_type === 'skeleton_fit_state' &&- data.pipelines &&- typeof data.pipelines === 'object'- );-}-export const PosthocProgressSchema = z.object({message_type: z.literal('posthoc_progress'),pipeline_id: z.string(),diff --git a/freemocap-ui/src/store/slices/mocap/mocap-slice.ts b/freemocap-ui/src/store/slices/mocap/mocap-slice.tsindex 7b2ed168..dcb24ef4 100644--- a/freemocap-ui/src/store/slices/mocap/mocap-slice.ts+++ b/freemocap-ui/src/store/slices/mocap/mocap-slice.ts@@ -45,6 +45,20 @@ export interface EstimatorConfig {iqr_confidence_sensitivity: number;}+export interface TriangulationConfig {+ use_outlier_rejection: boolean;+ minimum_cameras_for_triangulation: number;+ maximum_cameras_to_drop: number;+ target_reprojection_error: number;+}++export interface PosthocFilterConfig {+ method: "butter_low_pass";+ cutoff: number;+ sampling_rate: number;+ order: number;+}+/*** Mirrors backend RealtimeFilterConfig (skeleton smoothing + gating).* Field names use snake_case to match the backend JSON.@@ -86,6 +100,8 @@ export const RTMPOSE_MODELS: { label: string; value: RTMPoseModelName }[] = [export interface MocapConfig {detector: MediapipeDetectorConfig;skeleton_filter: RealtimeFilterConfig;+ triangulation: TriangulationConfig;+ posthoc_filter: PosthocFilterConfig;detectorType: DetectorType;rtmPoseModelName: RTMPoseModelName;rtmPoseConfidenceThreshold: number;@@ -164,6 +180,15 @@ export function detectPreset(* Range 0.003β0.02 is appropriate for mm-space data.* NOTE: beta = 0.3 (meter-space convention) is ~1000Γ too high.*/++export const DEFAULT_TRIANGULATION_CONFIG: TriangulationConfig = {+ use_outlier_rejection: true,+ minimum_cameras_for_triangulation: 2,+ maximum_cameras_to_drop: 1,+ target_reprojection_error: 0.02,+};++export const DEFAULT_REALTIME_FILTER_CONFIG: RealtimeFilterConfig = {min_cutoff: 1.0,beta: 0.007,@@ -180,6 +205,15 @@ export const DEFAULT_REALTIME_FILTER_CONFIG: RealtimeFilterConfig = {prediction_velocity_decay: 0.75,};+export const DEFAULT_POSTHOC_FILTER_CONFIG: PosthocFilterConfig ={+ method: "butter_low_pass",+ cutoff: 6.0,+ sampling_rate: 30.0,+ order: 4,+};+++export interface MocapDirectoryInfo {exists: boolean;canRecord: boolean;@@ -204,24 +238,55 @@ export interface MocapState {processingPhase: string;}++const DEFAULT_MOCAP_CONFIG: MocapConfig = {+ detector: {...MEDIAPIPE_REALTIME_PRESET},+ triangulation: {...DEFAULT_TRIANGULATION_CONFIG},+ skeleton_filter: {...DEFAULT_REALTIME_FILTER_CONFIG},+ posthoc_filter: {...DEFAULT_POSTHOC_FILTER_CONFIG},++ detectorType: "rtmpose",+ rtmPoseModelName: "rtmw-x-l_256x192",+ rtmPoseConfidenceThreshold: 0.004,+ mediapipeModelComplexity: "heavy",+ mediapipeDetectionConfidence: 0.5,+ mediapipePresenceConfidence: 0.5,+ mediapipeTrackingConfidence: 0.5,+ mediapipeNumHands: 2,+ mediapipeNumFaces: 1,+};+// ==================== Initial State ====================-const _persistedMocapConfig = loadFromStorage<MocapConfig | null>('mocap.config', null);+const _persistedMocapConfig = loadFromStorage<Partial<MocapConfig> | null>( "mocap.config", null, );-const initialState: MocapState = {- config: _persistedMocapConfig ?? {- detector: { ...MEDIAPIPE_REALTIME_PRESET },- skeleton_filter: { ...DEFAULT_REALTIME_FILTER_CONFIG },- detectorType: "rtmpose" as DetectorType,- rtmPoseModelName: "rtmw-x-l_256x192" as RTMPoseModelName,- rtmPoseConfidenceThreshold: 0.004,- mediapipeModelComplexity: "heavy" as MediapipeModelComplexity,- mediapipeDetectionConfidence: 0.5,- mediapipePresenceConfidence: 0.5,- mediapipeTrackingConfidence: 0.5,- mediapipeNumHands: 2,- mediapipeNumFaces: 1,+const initialMocapConfig: MocapConfig = {+ ...DEFAULT_MOCAP_CONFIG,+ ...(_persistedMocapConfig ?? {}),++ detector: {+ ...DEFAULT_MOCAP_CONFIG.detector,+ ...(_persistedMocapConfig?.detector ?? {}),+ },++ triangulation: {+ ...DEFAULT_MOCAP_CONFIG.triangulation,+ ...(_persistedMocapConfig?.triangulation ?? {}),+ },++ skeleton_filter: {+ ...DEFAULT_MOCAP_CONFIG.skeleton_filter,+ ...(_persistedMocapConfig?.skeleton_filter ?? {}),+ },++ posthoc_filter: {+ ...DEFAULT_MOCAP_CONFIG.posthoc_filter,+ ...(_persistedMocapConfig?.posthoc_filter ?? {}),},+};++const initialState: MocapState = {+ config: initialMocapConfig,isRecording: false,recordingProgress: 0,isLoading: false,@@ -229,7 +294,7 @@ const initialState: MocapState = {directoryInfo: null,calibrationTomlPath: null,processingProgress: 0,- processingPhase: '',+ processingPhase: "",};// ==================== Slice ====================@@ -296,6 +361,14 @@ export const mocapSlice = createSlice({state.config.skeleton_filter = { ...state.config.skeleton_filter, ...action.payload };},+ triangulationConfigUpdated: (state, action: PayloadAction<Partial<TriangulationConfig>>) => {+ state.config.triangulation = { ...state.config.triangulation, ...action.payload };+ },++ posthocFilterConfigUpdated: (state, action: PayloadAction<Partial<PosthocFilterConfig>>) => {+ state.config.posthoc_filter = {...state.config.posthoc_filter, ...action.payload};+ },+mocapProgressUpdated: (state, action: PayloadAction<number>) => {state.recordingProgress = action.payload;},@@ -382,7 +455,9 @@ export const mocapSlice = createSlice({export const selectMocap = (state: RootState) => state.mocap;export const selectMocapConfig = (state: RootState) => state.mocap.config;export const selectMocapDetectorConfig = (state: RootState) => state.mocap.config.detector;+export const selectMocapTriangulationConfig = (state: RootState) => state.mocap.config.triangulation;export const selectSkeletonFilterConfig = (state: RootState) => state.mocap.config.skeleton_filter;+export const selectPosthocFilterConfig = (state: RootState) => state.mocap.config.posthoc_filter;export const selectMocapDetectorType = (state: RootState) => state.mocap.config.detectorType;export const selectMocapRtmPoseModelName = (state: RootState) => state.mocap.config.rtmPoseModelName;export const selectMocapRtmPoseConfidenceThreshold = (state: RootState) => state.mocap.config.rtmPoseConfidenceThreshold;@@ -454,6 +529,8 @@ export const {mocapDetectorConfigUpdated,skeletonFilterConfigReplaced,skeletonFilterConfigUpdated,+ triangulationConfigUpdated,+ posthocFilterConfigUpdated,mocapProgressUpdated,mocapErrorCleared,mocapDirectoryInfoUpdated,diff --git a/freemocap-ui/src/store/slices/mocap/mocap-thunks.ts b/freemocap-ui/src/store/slices/mocap/mocap-thunks.tsindex 29a63b74..4ee5545d 100644--- a/freemocap-ui/src/store/slices/mocap/mocap-thunks.ts+++ b/freemocap-ui/src/store/slices/mocap/mocap-thunks.ts@@ -23,6 +23,8 @@ function buildPosthocConfig(state: RootState) {mediapipeNumHands: config.mediapipeNumHands,mediapipeNumFaces: config.mediapipeNumFaces,calibrationTomlPath,+ triangulationConfig: config.triangulation,+ filterConfig: config.posthoc_filter,exportToBlender: blender.exportToBlenderEnabled,blenderExePath: blender.blenderExePath ?? blender.detectedBlenderExePath,autoOpenBlendFile: blender.autoOpenBlendFile,diff --git a/freemocap-ui/src/styles/log-terminal.css b/freemocap-ui/src/styles/log-terminal.cssindex 73f93f27..2178b817 100644--- a/freemocap-ui/src/styles/log-terminal.css+++ b/freemocap-ui/src/styles/log-terminal.css@@ -45,6 +45,7 @@position: absolute;left: 0;right: 0;+ color: var(--color-bg-secondary);}/* ---- Empty state ---- */diff --git a/freemocap/api/http/realtime/realtime_router.py b/freemocap/api/http/realtime/realtime_router.pyindex 0e4ac020..9512d4b9 100644--- a/freemocap/api/http/realtime/realtime_router.py+++ b/freemocap/api/http/realtime/realtime_router.py@@ -11,7 +11,6 @@ from freemocap.core.pipeline.realtime.realtime_pipeline import RealtimePipelinefrom freemocap.pubsub.pubsub_topics import (SkeletonFitterResetMessage,SkeletonFitterResetTopic,- SkeletonFitStateMessage,)logger = logging.getLogger(__name__)@@ -56,37 +55,6 @@ class RealtimePipelineCloseResponse(BaseModel):class RealtimePipelineUpdateRequest(BaseModel):config: RealtimePipelineConfig = Field(default_factory=RealtimePipelineConfig, examples=[RealtimePipelineConfig()])-class SkeletonFitStateResponse(BaseModel):- model_config = ConfigDict(populate_by_name=True)-- state: str = Field(description="Ritual state: idle | countdown | capturing | fitted")- countdown_remaining_s: float = Field(alias="countdownRemainingS")- capture_good_streak: int = Field(alias="captureGoodStreak")- capture_required_good_frames: int = Field(alias="captureRequiredGoodFrames")- capture_min_visible_fraction: float = Field(alias="captureMinVisibleFraction")- capture_max_mean_error_px: float = Field(alias="captureMaxMeanErrorPx")- capture_timeout_remaining_s: float = Field(alias="captureTimeoutRemainingS")- visible_fraction: float = Field(alias="visibleFraction")- mean_error_px: float | None = Field(alias="meanErrorPx")- n_fitted_body_bones: int = Field(alias="nFittedBodyBones")- median_seed_deviation: float | None = Field(alias="medianSeedDeviation")-- @classmethod- def from_message(cls, msg: SkeletonFitStateMessage) -> "SkeletonFitStateResponse":- return cls(- state=msg.state,- countdown_remaining_s=msg.countdown_remaining_s,- capture_good_streak=msg.capture_good_streak,- capture_required_good_frames=msg.capture_required_good_frames,- capture_min_visible_fraction=msg.capture_min_visible_fraction,- capture_max_mean_error_px=msg.capture_max_mean_error_px,- capture_timeout_remaining_s=msg.capture_timeout_remaining_s,- visible_fraction=msg.visible_fraction,- mean_error_px=msg.mean_error_px,- n_fitted_body_bones=msg.n_fitted_body_bones,- median_seed_deviation=msg.median_seed_deviation,- )-@realtime_router.post("/apply",@@ -182,34 +150,3 @@ async def reset_skeleton_fitter_endpoint() -> None:status_code=500,detail=f"Error resetting skeleton fitter: {type(e).__name__} - {e}",)---@realtime_router.get(- "/skeleton-fitter-state",- summary="Current segment-fit ritual state per pipeline (idle/countdown/capturing/fitted)",-)-async def skeleton_fitter_state_endpoint() -> dict[str, SkeletonFitStateResponse | None]:- """Latest segment-fit ritual state for every live pipeline.-- Values are None for pipelines whose fitter hasn't published a state yet- (skeleton fitting disabled, or no frames processed since startup).- """- logger.api("Received `realtime/skeleton-fitter-state` GET request")- try:- app = get_freemocap_app()- result: dict[str, SkeletonFitStateResponse | None] = {}- for pipeline in app.realtime_pipeline_manager.pipelines.values():- state = pipeline.get_latest_skeleton_fit_state()- result[pipeline.id] = (- SkeletonFitStateResponse.from_message(state)- if state is not None- else None- )- return result- except Exception as e:- logger.error(f"Error reading skeleton fitter state: {type(e).__name__} - {e}")- logger.exception(e)- raise HTTPException(- status_code=500,- detail=f"Error reading skeleton fitter state: {type(e).__name__} - {e}",- )diff --git a/freemocap/api/websocket/websocket_message_types.py b/freemocap/api/websocket/websocket_message_types.pyindex ee646e9d..9df4acbe 100644--- a/freemocap/api/websocket/websocket_message_types.py+++ b/freemocap/api/websocket/websocket_message_types.py@@ -12,4 +12,3 @@ class WebsocketMessageType(str, enum.Enum):LOG_RECORD = "log_record"TRACKER_SCHEMAS = "tracker_schemas"APP_STATE = "app_state"- SKELETON_FIT_STATE = "skeleton_fit_state"diff --git a/freemocap/api/websocket/websocket_server.py b/freemocap/api/websocket/websocket_server.pyindex 5b39e85c..cf315512 100644--- a/freemocap/api/websocket/websocket_server.py+++ b/freemocap/api/websocket/websocket_server.py@@ -21,7 +21,6 @@ from starlette.websockets import WebSocket, WebSocketState, WebSocketDisconnectfrom freemocap.api.websocket.tracker_schema_message import TrackerSchemasMessage, collect_active_tracker_schemasfrom freemocap.api.websocket.websocket_message_types import WebsocketMessageTypefrom freemocap.app.freemocap_application import FreemocapApplication, get_freemocap_app-from freemocap.pubsub.pubsub_topics import SkeletonFitStateMessagefrom freemocap.utilities.wait_functions import await_10msfrom skellycam.core.types.type_overloads import CameraGroupIdString, FrameNumberInt@@ -159,10 +158,6 @@ class WebsocketServer:self._app_state_sender(),name="WebsocketAppStateSender",),- asyncio.create_task(- self._skeleton_fit_state_sender(),- name="WebsocketSkeletonFitStateSender",- ),]try:@@ -204,38 +199,6 @@ class WebsocketServer:self._global_kill_flag.value = Trueraise- async def _skeleton_fit_state_sender(self):- """Push per-pipeline segment-fit ritual state whenever it changes.-- Drives the frontend's calibration-ritual overlay (countdown β hold-- still capture β locked) with no HTTP polling. States only change while- a ritual runs, so an idle fitter costs zero messages.- """- logger.info("Starting skeleton-fit-state sender task...")- previous: dict[str, SkeletonFitStateMessage | None] | None = None- try:- while self.should_continue:- states = {- pipeline.id: pipeline.get_latest_skeleton_fit_state()- for pipeline in self._app.realtime_pipeline_manager.pipelines.values()- }- if previous is None or states != previous:- await self._send_msgspec_json({- "message_type": WebsocketMessageType.SKELETON_FIT_STATE,- "pipelines": states,- })- await asyncio.sleep(0.25)- previous = states- except asyncio.CancelledError:- pass- except WebSocketDisconnect:- logger.info("Client disconnected, ending skeleton-fit-state sender task...")- except Exception as e:- logger.exception(f"Error in skeleton-fit-state sender: {e.__class__}: {e}")- self._websocket_should_continue = False- self._global_kill_flag.value = True- raise-def last_frame_acknowledged(self) -> bool:if self.last_sent_frame_number == -1:return Truediff --git a/freemocap/core/pipeline/realtime/realtime_aggregator_node.py b/freemocap/core/pipeline/realtime/realtime_aggregator_node.pyindex 94d5b9e5..5f327169 100644--- a/freemocap/core/pipeline/realtime/realtime_aggregator_node.py+++ b/freemocap/core/pipeline/realtime/realtime_aggregator_node.py@@ -13,12 +13,11 @@ second. If the file has changed (e.g. after posthoc calibration completes),the new calibration is loaded and the skeleton filter + velocity gate are reset.Rigid-body correction (``RealtimeSkeletonRigidifier``) runs on the triangulated-3D points: each bone's length is estimated online (a best-K-by-reprojection-error-median, seeded from anthropometry and bounded to a trust region around the seed)-and enforced by a single closed-form forward pass. Only real (non-extrapolated)-keypoints teach lengths. The reset signal arms a calibration ritual β countdown,-quality-gated capture, freeze β instead of re-fitting on the next frame; the-ritual state is published every frame on SkeletonFitStateTopic.+3D points: each bone's length is the median of its measured lengths over a+rolling time window (seeded from anthropometry until the window fills) and+enforced by a single closed-form forward pass. Only real (non-extrapolated)+keypoints teach lengths. The reset signal clears the rolling window so the next+~window seconds re-fit from scratch."""import loggingimport multiprocessing.synchronize@@ -79,8 +78,6 @@ from freemocap.pubsub.pubsub_topics import (SkeletonInferenceResultMessage,SkeletonInferenceResultTopic,PipelineTimingTopic,- SkeletonFitStateMessage,- SkeletonFitStateTopic,)# Cap on how many pending skeleton-inference results we hold while waiting for@@ -179,9 +176,6 @@ class RealtimeAggregatorNode(AggregatorNode):result_ready_event=result_ready_event,result_consumed_event=result_consumed_event,skeleton_fitter_reset_sub=skeleton_fitter_reset_sub,- skeleton_fit_state_pub=pubsub.get_publication_queue(- SkeletonFitStateTopic,- ),),)return cls(@@ -208,7 +202,6 @@ class RealtimeAggregatorNode(AggregatorNode):result_ready_event: multiprocessing.synchronize.Event,result_consumed_event: multiprocessing.synchronize.Event,skeleton_fitter_reset_sub: TopicSubscriptionQueue,- skeleton_fit_state_pub: TopicPublicationQueue,) -> None:logger.debug(f"RealtimeAggregationNode [{camera_group_id}] initializing")aggregator_config = pipeline_config.aggregator_config@@ -260,18 +253,7 @@ class RealtimeAggregatorNode(AggregatorNode):skeleton_rigidifier = RealtimeSkeletonRigidifier.create(detector_type=detector_type,height_mm=filter_config.height_mm,- buffer_capacity=filter_config.segment_length_buffer_capacity,- decay_tau_s=filter_config.segment_length_decay_s,- fit_ratio=filter_config.segment_length_fit_ratio,- min_samples=filter_config.segment_length_min_samples,- agreement_tol=filter_config.segment_length_agreement_tol,- max_reprojection_error=filter_config.segment_length_max_reprojection_error_px,- countdown_s=filter_config.calibration_countdown_s,- capture_min_visible_fraction=filter_config.calibration_capture_min_visible_fraction,- capture_max_mean_error_px=filter_config.calibration_capture_max_mean_error_px,- capture_consecutive_good_frames=filter_config.calibration_capture_consecutive_good_frames,- capture_update_min_visible_fraction=filter_config.calibration_capture_update_min_visible_fraction,- capture_timeout_s=filter_config.calibration_capture_timeout_s,+ window_s=filter_config.segment_length_window_s,)rigidifier_filter_config = filter_configlogger.debug(@@ -396,18 +378,7 @@ class RealtimeAggregatorNode(AggregatorNode):skeleton_rigidifier = RealtimeSkeletonRigidifier.create(detector_type=detector_type,height_mm=filter_config.height_mm,- buffer_capacity=filter_config.segment_length_buffer_capacity,- decay_tau_s=filter_config.segment_length_decay_s,- fit_ratio=filter_config.segment_length_fit_ratio,- min_samples=filter_config.segment_length_min_samples,- agreement_tol=filter_config.segment_length_agreement_tol,- max_reprojection_error=filter_config.segment_length_max_reprojection_error_px,- countdown_s=filter_config.calibration_countdown_s,- capture_min_visible_fraction=filter_config.calibration_capture_min_visible_fraction,- capture_max_mean_error_px=filter_config.calibration_capture_max_mean_error_px,- capture_consecutive_good_frames=filter_config.calibration_capture_consecutive_good_frames,- capture_update_min_visible_fraction=filter_config.calibration_capture_update_min_visible_fraction,- capture_timeout_s=filter_config.calibration_capture_timeout_s,+ window_s=filter_config.segment_length_window_s,)rigidifier_filter_config = filter_configlogger.info(@@ -429,10 +400,10 @@ class RealtimeAggregatorNode(AggregatorNode):breakreset_requested = Trueif reset_requested and skeleton_rigidifier is not None:- skeleton_rigidifier.request_refit()+ skeleton_rigidifier.reset()logger.info(- f"RealtimeAggregationNode [{camera_group_id}] segment-fit "- f"ritual armed (countdown β capture β freeze)"+ f"RealtimeAggregationNode [{camera_group_id}] skeleton fit "+ f"reset β rolling length window cleared")# ---- Periodically check if calibration file changed on disk ----@@ -450,11 +421,11 @@ class RealtimeAggregatorNode(AggregatorNode):prev_com = Noneprev_com_time = Nonestreaming_kinematics.reset()- # New calibration β re-arm the refit ritual: the lengths- # were learned under the old calibration, so capture- # fresh ones under the new one.+ # New calibration β clear the learned lengths: they were+ # measured under the old calibration, so re-fit fresh+ # ones under the new one.if skeleton_rigidifier is not None:- skeleton_rigidifier.request_refit()+ skeleton_rigidifier.reset()# ---- Request new frames if ready ----if not camera_group_shm.valid:@@ -717,12 +688,6 @@ class RealtimeAggregatorNode(AggregatorNode):filtered_keypoints,measured=measured_keypoints,t=frame_time,- errors=raw_errors_px if raw_errors_px else None,- )- skeleton_fit_state_pub.put(- SkeletonFitStateMessage.from_snapshot(- skeleton_rigidifier.fit_state- ))if timer is not None:timer.record("skeleton_fitting", (time.perf_counter() - t0) * 1e3)diff --git a/freemocap/core/pipeline/realtime/realtime_pipeline.py b/freemocap/core/pipeline/realtime/realtime_pipeline.pyindex 51deeb10..f3ee9d1b 100644--- a/freemocap/core/pipeline/realtime/realtime_pipeline.py+++ b/freemocap/core/pipeline/realtime/realtime_pipeline.py@@ -42,8 +42,6 @@ from freemocap.pubsub.pubsub_topics import (PipelineConfigUpdateMessage,PipelineConfigUpdateTopic,SkeletonFitterResetTopic,- SkeletonFitStateMessage,- SkeletonFitStateTopic,)logger = logging.getLogger(__name__)@@ -68,7 +66,6 @@ class RealtimePipeline:skeleton_inference_node: RealtimeSkeletonInferenceNode | Nonecharuco_recorder_node: CharucoRecorderNode | Noneaggregation_output_subscription: TopicSubscriptionQueue- skeleton_fit_state_subscription: TopicSubscriptionQueueresult_ready_event: multiprocessing.synchronize.Eventresult_consumed_event: multiprocessing.synchronize.Eventipc: PipelineIPC@@ -78,7 +75,6 @@ class RealtimePipeline:# Config stashed while a calibration recording temporarily forces Charuco-only# mode (skeleton inference paused). None whenever not in that mode._pre_calibration_config: RealtimePipelineConfig | None = None- _latest_fit_state: SkeletonFitStateMessage | None = None@propertydef alive(self) -> bool:@@ -197,9 +193,6 @@ class RealtimePipeline:skeleton_fitter_reset_sub = pubsub.get_subscription(SkeletonFitterResetTopic,)- skeleton_fit_state_subscription = pubsub.get_subscription(- SkeletonFitStateTopic,- )aggregation_node = RealtimeAggregatorNode.create(camera_group_id=camera_group.id,@@ -227,7 +220,6 @@ class RealtimePipeline:skeleton_inference_node=skeleton_inference_node,charuco_recorder_node=charuco_recorder_node,aggregation_output_subscription=aggregation_output_subscription,- skeleton_fit_state_subscription=skeleton_fit_state_subscription,result_ready_event=result_ready_event,result_consumed_event=result_consumed_event,ipc=ipc,@@ -434,16 +426,6 @@ class RealtimePipeline:"""return await asyncio.to_thread(self.result_ready_event.wait, timeout)- def get_latest_skeleton_fit_state(self) -> SkeletonFitStateMessage | None:- """Newest segment-fit ritual state (drains the subscription to latest),- or None if the fitter hasn't published one yet."""- while True:- try:- self._latest_fit_state = self.skeleton_fit_state_subscription.get_nowait()- except Empty:- break- return self._latest_fit_state-def get_latest_frontend_payload(self,if_newer_than: FrameNumberInt,diff --git a/freemocap/core/tasks/mocap/mocap_helpers/skeleton_from_mediapipe_observations.py b/freemocap/core/tasks/mocap/mocap_helpers/skeleton_from_mediapipe_observations.pyindex 175d3fb5..e77f89e7 100644--- a/freemocap/core/tasks/mocap/mocap_helpers/skeleton_from_mediapipe_observations.py+++ b/freemocap/core/tasks/mocap/mocap_helpers/skeleton_from_mediapipe_observations.py@@ -95,6 +95,7 @@ def skeleton_from_mediapipe_observation_recorders(config=interp_config,)+ logger.info(f"Filtering trajectory with config: {filter_config.model_dump_json(indent=2)}")filtered_trajectory_3d: Trajectory3d = filter_trajectory(trajectory=interpolated_trajectory_3d,config=filter_config,diff --git a/freemocap/core/tasks/mocap/mocap_task_config.py b/freemocap/core/tasks/mocap/mocap_task_config.pyindex 7f2e7300..9db9abab 100644--- a/freemocap/core/tasks/mocap/mocap_task_config.py+++ b/freemocap/core/tasks/mocap/mocap_task_config.py@@ -22,6 +22,9 @@ from skellytracker.core.temporal_processing.temporal_processing_config import (KeypointsWithinBBoxRatioConfig,)+from skellyforge.post_processing.filters.filter_config import FilterConfig+from freemocap.core.tasks.triangulation.helpers.triangulation_config import TriangulationConfig+class PosthocMocapPipelineConfig(BaseModel):@@ -98,6 +101,19 @@ class PosthocMocapPipelineConfig(BaseModel):alias="calibrationTomlPath",description="Path to calibration TOML. If None, the most-recent successful calibration is used.",)++ triangulation_config: TriangulationConfig = Field(+ default_factory=TriangulationConfig,+ alias="triangulationConfig",+ description="Configuration for the triangulation step of the mocap pipeline.",+ )++ filter_config: FilterConfig = Field(+ default_factory=FilterConfig,+ alias="filterConfig",+ description="Configuration for the post-processing filter applied to the mocap data.",+ )+export_to_blender: bool = Field(default=True,alias="exportToBlender",diff --git a/freemocap/core/tasks/mocap/posthoc_mocap_task.py b/freemocap/core/tasks/mocap/posthoc_mocap_task.pyindex d67b8af5..7c571d54 100644--- a/freemocap/core/tasks/mocap/posthoc_mocap_task.py+++ b/freemocap/core/tasks/mocap/posthoc_mocap_task.py@@ -108,6 +108,8 @@ def run_posthoc_mocap_aggregator_task(observation_recorders=observation_recorders,path_to_calibration_toml=calibration_toml_path,path_to_output_data_folder=output_folder,+ filter_config=task_config.filter_config,+ triangulation_config=task_config.triangulation_config)# ---- Save tracker schema alongside outputs ----diff --git a/freemocap/core/tasks/mocap/realtime_filtering/realtime_filter_config.py b/freemocap/core/tasks/mocap/realtime_filtering/realtime_filter_config.pyindex 40974084..b693ada2 100644--- a/freemocap/core/tasks/mocap/realtime_filtering/realtime_filter_config.py+++ b/freemocap/core/tasks/mocap/realtime_filtering/realtime_filter_config.py@@ -70,70 +70,16 @@ class RealtimeFilterConfig(BaseModel):d_cutoff: float = 1.0# ---- Rigid-body skeleton correction ----- # Per bone, the online estimator keeps the best-K length measurements- # (ranked by reprojection error, with an age decay) and enforces their- # median via a single closed-form forward pass β the streaming analogue of- # the posthoc rigid-bones step. No iteration, no convergence loop.-- # Best-K buffer size per bone. Larger = steadier estimate, slower to adapt.- # ~64 samples at 30 fps is ~2 s of the best observations retained.- segment_length_buffer_capacity: int = 64-- # Age-decay time constant (seconds) for the buffer's eviction score:- # effective_error = error * exp(age / decay_s)- # Stale samples lose their slot to fresh decent ones, so the estimate keeps- # adapting (never permanently frozen on old data).- segment_length_decay_s: float = 30.0-- # Trust-region half-width (fraction of the seed length). A measured length- # outside seed Γ (1 Β± fit_ratio) β lower bound floored at 0.25 Γ seed β is- # rejected outright, and reported estimates are clamped to the same band.- # 0.0 = lengths locked to the seeds; 1.0 = up to double/half the seed.- segment_length_fit_ratio: float = 0.2-- # Measurements a bone's buffer must retain before its median may replace- # the seed. Bootstrap protection: one frame teaches nothing.- segment_length_min_samples: int = 5-- # Max relative MAD (median absolute deviation / median) across a buffer's- # retained samples for them to count as agreeing. A flickering or bimodal- # measurement stream never replaces the seed.- segment_length_agreement_tol: float = 0.05-- # Reprojection-error gate for admitting a length measurement (pixels).- # Distinct from the triangulation survival gate below: a point may survive- # triangulation yet be too sloppy to teach bone lengths.- segment_length_max_reprojection_error_px: float = 15.0-- # ---- Segment-fit calibration ritual ----- # "Reset skeleton fit" arms this ritual instead of re-fitting instantly:- # countdown (subject gets into view) β quality-gated capture window β- # freeze (captured lengths re-anchor the trust regions) β bounded drift.-- # Seconds between arming a refit and the capture window opening.- calibration_countdown_s: float = 3.0-- # Fraction of measurable body keypoints that must be really observed (not- # extrapolated) for a capture frame to count as good.- calibration_capture_min_visible_fraction: float = 0.8-- # Max mean reprojection error across measured body keypoints for a capture- # frame to count as good (pixels).- calibration_capture_max_mean_error_px: float = 10.0-- # Consecutive good frames required to freeze the capture. ~1 s at 30 fps.- calibration_capture_consecutive_good_frames: int = 30-- # Lower visibility floor for a capture frame to still teach the bones it- # can see (per-bone buffers only sample really-observed endpoints, so a- # partial body β seated at a desk, legs under the table β calibrates its- # visible bones even though the full-body "good" gate never passes).- calibration_capture_update_min_visible_fraction: float = 0.25-- # Max seconds in the capture window before a best-effort freeze: whatever- # bones reached agreement are re-anchored; if none did, the ritual drops- # back to normal live fitting. Bounds the ritual so it always terminates.- calibration_capture_timeout_s: float = 15.0+ # Each bone's enforced length is the median of its measured lengths over a+ # rolling time window; a single closed-form forward pass then holds those+ # lengths while following the observed pose (the streaming analogue of the+ # posthoc rigid-bones step). No ritual, no per-bone buffer tuning β the+ # median is inherently robust and self-adapting.++ # Rolling-window duration (seconds) over which each bone's median length is+ # taken. Larger = steadier lengths, slower to adapt to a new subject.+ # "Reset skeleton fit" clears the window so the next ~window seconds re-fit.+ segment_length_window_s: float = 10.0# ---- Subject scale ----# Subject standing height in keypoint-coordinate units (mm). The charucodiff --git a/freemocap/core/tasks/mocap/rigid_body/online_segment_lengths.py b/freemocap/core/tasks/mocap/rigid_body/online_segment_lengths.pyindex 7466cf24..78f7fa75 100644--- a/freemocap/core/tasks/mocap/rigid_body/online_segment_lengths.py+++ b/freemocap/core/tasks/mocap/rigid_body/online_segment_lengths.py@@ -1,273 +1,98 @@-"""Streaming bone-length estimation for realtime rigid-body skeleton correction.--Each bone keeps a bounded "best-K" buffer of length measurements ranked by-reprojection error with an age decay, and reports their **median** β the realtime-analogue of the posthoc pipeline's per-bone median over the whole recording-(skellyforge ``enforce_rigid_bones.calculate_bone_lengths_and_statistics``).--Two guards keep the estimate honest:--* **Trust region** β a measurement only enters the buffer if it lands within- ``seed_length Γ (1 Β± fit_ratio)`` (lower bound floored at 25% of the seed),- and the reported estimate is clamped to the same band. The anchor is the- seed β the anthropometric prior, or a captured calibration via ``reseed`` β- never the buffer's own contents, so no stream of garbage can drag the- estimate out of spec or redefine what "plausible" means.-* **Bootstrap agreement** β the buffer only replaces its seed once- ``min_samples`` retained measurements agree with each other (relative MAD- within ``agreement_tol``). One frame β or a flickering stream β teaches- nothing.--Why best-K-by-error instead of a recency window: a bone length is (assumed)-stationary, so the best estimate comes from the highest-quality observations-*ever* seen, not merely the most recent ones. The age decay (``decay_tau_s``)-keeps the estimate from getting permanently stuck on stale data β an old-sample's *effective* error grows with age, so it eventually loses its buffer-slot to fresher, decent measurements.+"""Rolling-window median bone-length estimation for the realtime rigidifier.++Each bone keeps a time-windowed buffer of its measured lengths (the last+``window_s`` seconds) and reports their **median** β the realtime analogue of the+posthoc pipeline's per-bone median over the whole recording (skellyforge+``enforce_rigid_bones``). Until a bone has any samples in its window (start-up, or+a bone that has been out of view longer than the window), it reports its+anthropometric seed (ratio Γ height) so the rigidifier always has a length to+enforce.++A plain rolling median β no trust region, no agreement gating, no error+weighting, no age decay. The median is inherently robust to the occasional+mis-triangulated frame, and lengths are measured only from really-observed+(non-extrapolated) endpoints, so a hidden limb contributes nothing."""from __future__ import annotations-import math+from collections import dequefrom dataclasses import dataclass, fieldimport numpy as np-@dataclass(slots=True)-class _Sample:- length: float- error: float- t: float---def _clamp(x: float, lo: float, hi: float) -> float:- return min(hi, max(lo, x))---@dataclass-class BoneLengthBuffer:- """Best-K-by-reprojection-error buffer of one bone's length measurements.-- Parameters- ----------- capacity : int- Max measurements retained (K). When exceeded, the worst (by age-decayed- reprojection error) is evicted.- decay_tau_s : float- Age-decay time constant (seconds). A stored sample's effective error is- ``error * exp(age / decay_tau_s)``, so stale samples lose their slot.- seed_length : float- Anthropometric prior (mm) returned until the buffer reaches agreement,- and the anchor of the trust region. Replaced by ``reseed``.- fit_ratio : float- Trust-region half-width as a fraction of the seed: measurements outside- ``seed Γ (1 Β± fit_ratio)`` (lower bound floored at ``seed Γ 0.25``) are- rejected outright.- min_samples : int- Minimum retained measurements before the buffer may leave its seed.- agreement_tol : float- Max relative MAD (median absolute deviation / median) across retained- samples for the buffer to count as agreeing.- max_error : float | None- Reprojection-error gate: measurements above this are dropped outright.- """-- capacity: int- decay_tau_s: float- seed_length: float- fit_ratio: float = 0.2- min_samples: int = 5- agreement_tol: float = 0.05- max_error: float | None = None-- _samples: list[_Sample] = field(default_factory=list, init=False, repr=False)-- @property- def trust_region(self) -> tuple[float, float]:- """(lower, upper) acceptable length band (mm), anchored to the seed."""- lower = max(self.seed_length * (1.0 - self.fit_ratio), self.seed_length * 0.25)- upper = self.seed_length * (1.0 + self.fit_ratio)- return lower, upper-- def offer(self, *, length: float, error: float, t: float) -> bool:- """Offer one measurement. Returns True if it is retained in the buffer."""- if not math.isfinite(length) or length <= 0.0:- return False- if self.max_error is not None and error > self.max_error:- return False- lower, upper = self.trust_region- if length < lower or length > upper:- return False-- new_sample = _Sample(length=float(length), error=float(error), t=float(t))- self._samples.append(new_sample)- if len(self._samples) > self.capacity:- evicted = self._evict_worst(now=t)- if evicted is new_sample:- return False- return True-- def _evict_worst(self, *, now: float) -> _Sample:- worst_idx = max(- range(len(self._samples)),- key=lambda i: self._effective_error(self._samples[i], now=now),- )- return self._samples.pop(worst_idx)-- def _effective_error(self, sample: _Sample, *, now: float) -> float:- age = now - sample.t- if age <= 0.0:- return sample.error- return sample.error * math.exp(age / self.decay_tau_s)-- def agreed_median(self) -> float | None:- """Buffer consensus length (mm), or None when there is no consensus.-- Consensus requires ``min_samples`` retained measurements whose relative- MAD is within ``agreement_tol`` β a flickering or bimodal measurement- stream has no opinion and the seed stands.- """- if len(self._samples) < self.min_samples:- return None- lengths = np.asarray([s.length for s in self._samples], dtype=float)- median = float(np.median(lengths))- mad = float(np.median(np.abs(lengths - median)))- if mad / median > self.agreement_tol:- return None- return median-- @property- def estimate(self) -> float:- """Current best length estimate (mm): the agreed median if the buffer- has consensus, else the seed β never outside the trust region."""- median = self.agreed_median()- if median is None:- return self.seed_length- lower, upper = self.trust_region- return _clamp(median, lower, upper)-- def reseed(self, new_seed: float) -> None:- """Re-anchor on a captured length: replace the seed, forget measurements.-- The trust region re-centers on ``new_seed`` and the estimate falls back- to it until fresh agreement accumulates β captured calibration with- bounded drift.- """- if not math.isfinite(new_seed) or new_seed <= 0.0:- raise ValueError(f"reseed requires a positive finite length, got {new_seed}")- self.seed_length = float(new_seed)- self._samples.clear()-- def __len__(self) -> int:- return len(self._samples)-- def reset(self) -> None:- """Forget all measurements β the estimate falls back to the seed."""- self._samples.clear()--@dataclass-class OnlineBoneLengths:- """One ``BoneLengthBuffer`` per bone, seeded from anthropometric ratios.+class RollingBoneLengths:+ """Per-bone rolling-window median length estimator.``update`` is called once per frame with the current canonical-named 3D- positions of **real** (measured, not extrapolated) keypoints and- (optionally) per-keypoint reprojection errors; ``lengths`` returns the- current best length estimate per bone for the rigidifier.+ positions of **real** (measured, not extrapolated) keypoints; ``lengths``+ returns the current median length estimate per bone for the rigidifier.Parameters----------bone_seeds : dict[str, float]- ``"parent->child" -> seed length (mm)`` (ratio x height). Defines which- bones are tracked and their starting estimates.- capacity, decay_tau_s, fit_ratio, min_samples, agreement_tol, max_error- Per-bone buffer settings (see ``BoneLengthBuffer``).+ ``"parent->child" -> seed length (mm)`` (ratio Γ height). Defines which+ bones are tracked and the fallback length used while a bone's window is+ empty.+ window_s : float+ Rolling-window duration (seconds). A measurement is dropped once it is+ older than ``window_s`` relative to the most recent ``update`` timestamp."""bone_seeds: dict[str, float]- capacity: int- decay_tau_s: float- fit_ratio: float = 0.2- min_samples: int = 5- agreement_tol: float = 0.05- max_error: float | None = None+ window_s: float- _buffers: dict[str, BoneLengthBuffer] = field(default_factory=dict, init=False, repr=False)_endpoints: dict[str, tuple[str, str]] = field(default_factory=dict, init=False, repr=False)+ _windows: dict[str, deque[tuple[float, float]]] = field(default_factory=dict, init=False, repr=False)def __post_init__(self) -> None:- for bone_key, seed in self.bone_seeds.items():+ for bone_key in self.bone_seeds:parent, child = bone_key.split("->", 1)self._endpoints[bone_key] = (parent, child)- self._buffers[bone_key] = BoneLengthBuffer(- capacity=self.capacity,- decay_tau_s=self.decay_tau_s,- seed_length=float(seed),- fit_ratio=self.fit_ratio,- min_samples=self.min_samples,- agreement_tol=self.agreement_tol,- max_error=self.max_error,- )+ self._windows[bone_key] = deque()@propertydef endpoints(self) -> dict[str, tuple[str, str]]:"""``"parent->child" -> (parent, child)`` for every tracked bone."""return dict(self._endpoints)- def update(- self,- positions: dict[str, np.ndarray],- *,- t: float,- errors: dict[str, float] | None = None,- ) -> None:- """Offer this frame's per-bone length measurements to their buffers.+ @property+ def seeds(self) -> dict[str, float]:+ """Anthropometric seed (mm) per bone β the empty-window fallback."""+ return dict(self.bone_seeds)++ def update(self, positions: dict[str, np.ndarray], *, t: float) -> None:+ """Append this frame's per-bone length measurements, then age the windows.- A bone is measured only when both endpoints are present. Its measurement- error is the **worse** of the two endpoints' reprojection errors (a bone- is only as trustworthy as its less-certain endpoint). When ``errors``- is None, measurements are treated as fully confident (error 0).+ A bone is measured only when both endpoints are present. Every window β+ measured this frame or not β drops samples older than ``window_s`` so a+ bone that leaves view eventually falls back to its seed."""- for bone_key, buf in self._buffers.items():- parent, child = self._endpoints[bone_key]+ cutoff = t - self.window_s+ for bone_key, (parent, child) in self._endpoints.items():+ window = self._windows[bone_key]p = positions.get(parent)c = positions.get(child)- if p is None or c is None:- continue- length = float(np.linalg.norm(np.asarray(c, dtype=float) - np.asarray(p, dtype=float)))- if errors is None:- err = 0.0- else:- err = max(float(errors.get(parent, 0.0)), float(errors.get(child, 0.0)))- buf.offer(length=length, error=err, t=t)+ if p is not None and c is not None:+ length = float(np.linalg.norm(np.asarray(c, dtype=float) - np.asarray(p, dtype=float)))+ if np.isfinite(length) and length > 0.0:+ window.append((t, length))+ while window and window[0][0] < cutoff:+ window.popleft()@propertydef lengths(self) -> dict[str, float]:- """Current best length estimate (mm) per bone."""- return {bone_key: buf.estimate for bone_key, buf in self._buffers.items()}-- @property- def seeds(self) -> dict[str, float]:- """Current seed (mm) per bone: the anthropometric prior, or the captured- calibration for bones that have been re-anchored via ``reseed``."""- return {bone_key: buf.seed_length for bone_key, buf in self._buffers.items()}-- def agreed_medians(self) -> dict[str, float | None]:- """Per-bone buffer consensus (mm), or None where no agreement yet."""- return {bone_key: buf.agreed_median() for bone_key, buf in self._buffers.items()}-- def reseed(self, lengths: dict[str, float]) -> None:- """Re-anchor the given bones on captured lengths.-- Raises ``KeyError`` on an unknown bone key β no partial reseeds.- """- for bone_key in lengths:- if bone_key not in self._buffers:- raise KeyError(f"Unknown bone '{bone_key}' β cannot reseed.")- for bone_key, new_seed in lengths.items():- self._buffers[bone_key].reseed(new_seed)+ """Current median length estimate (mm) per bone, or the seed if empty."""+ out: dict[str, float] = {}+ for bone_key, window in self._windows.items():+ if window:+ out[bone_key] = float(np.median([length for _, length in window]))+ else:+ out[bone_key] = self.bone_seeds[bone_key]+ return outdef reset(self) -> None:"""Forget every bone's measurements β all estimates fall back to their seeds."""- for buf in self._buffers.values():- buf.reset()+ for window in self._windows.values():+ window.clear()diff --git a/freemocap/core/tasks/mocap/rigid_body/segment_fit_ritual.py b/freemocap/core/tasks/mocap/rigid_body/segment_fit_ritual.pydeleted file mode 100644index b8c45976..00000000--- a/freemocap/core/tasks/mocap/rigid_body/segment_fit_ritual.py+++ /dev/null@@ -1,264 +0,0 @@-"""Segment-fit calibration ritual for the realtime skeleton fitter.--State machine that turns "reset the skeleton fit" from an instant next-frame-re-fit into a gated capture: a countdown (so the subject can get into view and-hold still), a quality-gated capture window (only consecutive good frames-count), then a freeze that re-anchors each bone's trust region on the captured-length (see ``OnlineBoneLengths.reseed``). Bones that never reach agreement β-hands out of frame, a limb never visible β keep their seeds and stay live.-- IDLE β normal live fitting (the hardened buffers β trust region,- agreement gating, error ranking β do the work).- COUNTDOWN β armed; buffers cleared; no updates until the deadline passes.- CAPTURING β two quality tiers. "Updatable" frames (enough real keypoints- to teach something, low error) feed the per-bone buffers β- partial bodies still calibrate what the cameras can see, so- a seated subject's torso and arms fit even though the legs- never will. "Good" frames (nearly everything visible)- advance the consecutive-good streak toward the fast-path- freeze. A timeout bounds the window: on expiry, whatever- bones reached agreement are re-anchored (best effort); if- nothing agreed, the ritual drops back to IDLE.- FITTED β captured bones are re-anchored; updates continue, so lengths- drift slowly inside the re-anchored trust region.-"""-from __future__ import annotations--from dataclasses import dataclass-from enum import StrEnum--import numpy as np--from freemocap.core.tasks.mocap.rigid_body.online_segment_lengths import OnlineBoneLengths---class FitRitualState(StrEnum):- IDLE = "idle"- COUNTDOWN = "countdown"- CAPTURING = "capturing"- FITTED = "fitted"---@dataclass(slots=True, frozen=True)-class FitStateSnapshot:- """Point-in-time view of the ritual, for publication to the frontend."""-- state: str- countdown_remaining_s: float- capture_good_streak: int- capture_required_good_frames: int- capture_min_visible_fraction: float- capture_max_mean_error_px: float- capture_timeout_remaining_s: float- visible_fraction: float- mean_error_px: float | None- n_fitted_body_bones: int- median_seed_deviation: float | None---class SegmentFitRitual:- """Countdown β gated capture β freeze state machine over the three length managers."""-- def __init__(- self,- *,- body_lengths: OnlineBoneLengths,- rhand_lengths: OnlineBoneLengths,- lhand_lengths: OnlineBoneLengths,- countdown_s: float,- capture_min_visible_fraction: float,- capture_max_mean_error_px: float,- capture_consecutive_good_frames: int,- capture_update_min_visible_fraction: float,- capture_timeout_s: float,- ) -> None:- self._lengths = {- "body": body_lengths,- "rhand": rhand_lengths,- "lhand": lhand_lengths,- }- self._body_endpoints = body_lengths.endpoints- self._countdown_s = float(countdown_s)- self._min_visible = float(capture_min_visible_fraction)- self._max_mean_error = float(capture_max_mean_error_px)- self._update_min_visible = float(capture_update_min_visible_fraction)- self._timeout_s = float(capture_timeout_s)- # The freeze can only capture bones whose buffers reached agreement,- # which needs min_samples consecutive samples β so the required streak- # can never be shorter than the largest min_samples. Enforcing it here- # keeps the invariant true regardless of config.- self._required_good_frames = max(- int(capture_consecutive_good_frames),- max(m.min_samples for m in (body_lengths, rhand_lengths, lhand_lengths)),- )-- self._state = FitRitualState.IDLE- self._refit_pending = False- self._deadline_t = 0.0- self._capture_start_t = 0.0- self._good_streak = 0- self._last_t = 0.0- self._n_fitted_body_bones = 0- self._median_seed_deviation: float | None = None- self._last_visible_fraction = 0.0- self._last_mean_error_px: float | None = None-- def request_refit(self) -> None:- """Arm the ritual: the next frame starts the countdown."""- self._refit_pending = True-- @property- def state(self) -> FitRitualState:- return self._state-- def on_frame(- self,- *,- measured_body: dict[str, np.ndarray],- measured_rhand: dict[str, np.ndarray],- measured_lhand: dict[str, np.ndarray],- errors_body: dict[str, float] | None,- errors_rhand: dict[str, float] | None,- errors_lhand: dict[str, float] | None,- t: float,- ) -> None:- """Advance the state machine by one frame and apply its update policy."""- self._last_t = t- self._last_visible_fraction = self._visible_fraction(measured_body)- self._last_mean_error_px = self._mean_error(measured_body, errors_body)-- if self._refit_pending:- self._refit_pending = False- for lengths in self._lengths.values():- lengths.reset()- self._state = FitRitualState.COUNTDOWN- self._deadline_t = t + self._countdown_s- self._good_streak = 0- self._n_fitted_body_bones = 0- self._median_seed_deviation = None-- if self._state is FitRitualState.COUNTDOWN:- if t >= self._deadline_t:- self._state = FitRitualState.CAPTURING- self._capture_start_t = t- return-- if self._state is FitRitualState.CAPTURING:- error_ok = (- self._last_mean_error_px is None- or self._last_mean_error_px <= self._max_mean_error- )- good = self._last_visible_fraction >= self._min_visible and error_ok- updatable = self._last_visible_fraction >= self._update_min_visible and error_ok- if updatable:- # Partial-visibility frames still teach the bones they can- # see β a bone's buffer only samples when both endpoints are- # really observed, so a hidden leg pollutes nothing.- self._update_all(- measured_body, measured_rhand, measured_lhand,- errors_body, errors_rhand, errors_lhand, t,- )- if good:- self._good_streak += 1- if self._good_streak >= self._required_good_frames:- self._freeze()- self._state = FitRitualState.FITTED- return- self._good_streak = 0- if t - self._capture_start_t >= self._timeout_s:- # Best-effort freeze: re-anchor whatever reached agreement- # (a seated subject's torso/arms; the legs keep their seeds).- # Nothing agreed -> normal live fitting, no fanfare.- if self._freeze() > 0:- self._state = FitRitualState.FITTED- else:- self._state = FitRitualState.IDLE- return-- # IDLE and FITTED both update every frame; FITTED bones are re-anchored,- # so their updates drift only inside the captured trust region.- self._update_all(- measured_body, measured_rhand, measured_lhand,- errors_body, errors_rhand, errors_lhand, t,- )-- def _visible_fraction(self, measured_body: dict[str, np.ndarray]) -> float:- expected = {name for endpoints in self._body_endpoints.values() for name in endpoints}- present = sum(1 for name in expected if name in measured_body)- return present / len(expected)-- @staticmethod- def _mean_error(- measured_body: dict[str, np.ndarray],- errors_body: dict[str, float] | None,- ) -> float | None:- if errors_body is None:- return None- vals = [errors_body[name] for name in measured_body if name in errors_body]- if not vals:- return None- return float(np.mean(vals))-- def _update_all(- self,- measured_body: dict[str, np.ndarray],- measured_rhand: dict[str, np.ndarray],- measured_lhand: dict[str, np.ndarray],- errors_body: dict[str, float] | None,- errors_rhand: dict[str, float] | None,- errors_lhand: dict[str, float] | None,- t: float,- ) -> None:- self._lengths["body"].update(measured_body, t=t, errors=errors_body)- self._lengths["rhand"].update(measured_rhand, t=t, errors=errors_rhand)- self._lengths["lhand"].update(measured_lhand, t=t, errors=errors_lhand)-- def _freeze(self) -> int:- """Re-anchor every bone that reached agreement on its captured length.-- Returns the number of bones re-anchored across body and both hands.- """- n_captured = 0- deviations: list[float] = []- for tree_name, lengths in self._lengths.items():- medians = lengths.agreed_medians()- seeds = lengths.seeds- captured = {bone: m for bone, m in medians.items() if m is not None}- if not captured:- continue- n_captured += len(captured)- if tree_name == "body":- self._n_fitted_body_bones = len(captured)- deviations = [- abs(captured[bone] - seeds[bone]) / seeds[bone]- for bone in captured- ]- lengths.reseed(captured)- if deviations:- self._median_seed_deviation = float(np.median(deviations))- return n_captured-- def snapshot(self) -> FitStateSnapshot:- countdown_remaining = (- max(0.0, self._deadline_t - self._last_t)- if self._state is FitRitualState.COUNTDOWN- else 0.0- )- timeout_remaining = (- max(0.0, self._timeout_s - (self._last_t - self._capture_start_t))- if self._state is FitRitualState.CAPTURING- else 0.0- )- return FitStateSnapshot(- state=str(self._state),- countdown_remaining_s=countdown_remaining,- capture_good_streak=self._good_streak,- capture_required_good_frames=self._required_good_frames,- capture_min_visible_fraction=self._min_visible,- capture_max_mean_error_px=self._max_mean_error,- capture_timeout_remaining_s=timeout_remaining,- visible_fraction=self._last_visible_fraction,- mean_error_px=self._last_mean_error_px,- n_fitted_body_bones=self._n_fitted_body_bones,- median_seed_deviation=self._median_seed_deviation,- )diff --git a/freemocap/core/tasks/mocap/rigid_body/skeleton_rigidifier.py b/freemocap/core/tasks/mocap/rigid_body/skeleton_rigidifier.pyindex 39c48991..592e88d4 100644--- a/freemocap/core/tasks/mocap/rigid_body/skeleton_rigidifier.py+++ b/freemocap/core/tasks/mocap/rigid_body/skeleton_rigidifier.py@@ -43,11 +43,7 @@ from skellytracker.core.detectors.keypoint_detectors.rtmpose.hand.rtmpose_hand_d)from skellytracker.core.io.tracker_mapping import TrackerMapping-from freemocap.core.tasks.mocap.rigid_body.online_segment_lengths import OnlineBoneLengths-from freemocap.core.tasks.mocap.rigid_body.segment_fit_ritual import (- FitStateSnapshot,- SegmentFitRitual,-)+from freemocap.core.tasks.mocap.rigid_body.online_segment_lengths import RollingBoneLengths# Direction used for a bone that has never been observed (no carried direction)._FALLBACK_DIRECTION: np.ndarray = np.array([0.0, 1.0, 0.0])@@ -200,41 +196,6 @@ def _seeds_from_ratios(return seeds-def _hand_errors(- errors: dict[str, float] | None,- name_to_tracker: dict[str, str],-) -> dict[str, float] | None:- """Remap reprojection errors from tracker keypoint names to canonical hand names.-- Parameters- ----------- errors : dict[str, float] | None- Per-tracker-keypoint reprojection errors (px), keyed by the configured- detector's side-prefixed tracker names (e.g. ``"right_hand_thumb1"``- for RTMPose). ``None`` means no errors are available β all samples are- treated as equally confident.- name_to_tracker : dict[str, str]- Reverse map from canonical hand landmark name to side-prefixed- tracker name, as built by ``_build_hand_mapping``. For example- ``{"wrist": "right_hand_root", "thumb_cmc": "right_hand_thumb1"}``.-- Returns- -------- dict[str, float] | None- Errors remapped to canonical hand landmark names, or ``None`` if- ``errors`` was ``None``. Canonical names whose tracker name is not- present in ``errors`` are silently omitted (the bone estimator- treats missing entries as error 0.0).- """- if errors is None:- return None- return {- canonical: errors[tracker]- for canonical, tracker in name_to_tracker.items()- if tracker in errors- }--# ===========================================================================# RealtimeSkeletonRigidifier# ===========================================================================@@ -280,15 +241,13 @@ class RealtimeSkeletonRigidifier:_hand_tree_r: TreeRigidifier = field(repr=False)_hand_tree_l: TreeRigidifier = field(repr=False)- _body_lengths: OnlineBoneLengths = field(repr=False)- _rhand_lengths: OnlineBoneLengths = field(repr=False)- _lhand_lengths: OnlineBoneLengths = field(repr=False)+ _body_lengths: RollingBoneLengths = field(repr=False)+ _rhand_lengths: RollingBoneLengths = field(repr=False)+ _lhand_lengths: RollingBoneLengths = field(repr=False)_hand_name_to_tracker_r: dict[str, str] = field(repr=False)_hand_name_to_tracker_l: dict[str, str] = field(repr=False)- _ritual: SegmentFitRitual = field(repr=False)-height_mm: float = 1750.0@classmethod@@ -297,18 +256,7 @@ class RealtimeSkeletonRigidifier:*,detector_type: Literal["rtmpose", "mediapipe"] = "rtmpose",height_mm: float = 1750.0,- buffer_capacity: int = 64,- decay_tau_s: float = 30.0,- fit_ratio: float = 0.2,- min_samples: int = 5,- agreement_tol: float = 0.05,- max_reprojection_error: float | None = None,- countdown_s: float = 3.0,- capture_min_visible_fraction: float = 0.8,- capture_max_mean_error_px: float = 10.0,- capture_consecutive_good_frames: int = 30,- capture_update_min_visible_fraction: float = 0.25,- capture_timeout_s: float = 15.0,+ window_s: float = 10.0,) -> "RealtimeSkeletonRigidifier":"""Load canonical models + tracker mappings and build the per-tree state.@@ -321,38 +269,10 @@ class RealtimeSkeletonRigidifier:naming conventions.height_mm : floatSubject standing height (mm); scales the anthropometric bone-length- seeds used until real observations accumulate.- buffer_capacity : int- Best-K buffer size per bone.- decay_tau_s : float- Age-decay time constant (s) for the buffer's eviction score.- fit_ratio : float- Trust-region half-width (fraction of the seed) for admitting- measurements and clamping estimates.- min_samples : int- Measurements a bone's buffer must retain before it may leave its seed.- agreement_tol : float- Max relative MAD across a buffer's samples for them to count as- agreeing (replacing the seed).- max_reprojection_error : float | None- Reprojection-error gate for admitting a measurement (None = no- error gate, e.g. single-camera mode).- countdown_s : float- Seconds between arming a refit and the capture window opening.- capture_min_visible_fraction : float- Fraction of measurable body keypoints that must be really observed- (not extrapolated) for a capture frame to count as good.- capture_max_mean_error_px : float- Max mean reprojection error across measured body keypoints for a- capture frame to count as good.- capture_consecutive_good_frames : int- Consecutive good frames required to freeze the capture.- capture_update_min_visible_fraction : float- Lower visibility floor for a capture frame to still teach the- bones it can see (partial bodies calibrate their visible bones).- capture_timeout_s : float- Max seconds in the capture window before a best-effort freeze of- whatever bones reached agreement (none -> back to live fitting).+ seeds used until real observations accumulate in the window.+ window_s : float+ Rolling-window duration (s) over which each bone's median length is+ taken."""body_anatomy = AnatomicalStructure.from_model_info(CanonicalBodyModelInfo(), "body")hand_anatomy = AnatomicalStructure.from_model_info(CanonicalHandModelInfo(), "hand")@@ -378,31 +298,12 @@ class RealtimeSkeletonRigidifier:height_mm=height_mm,)- def make_lengths(seeds: dict[str, float]) -> OnlineBoneLengths:- return OnlineBoneLengths(- bone_seeds=seeds,- capacity=buffer_capacity,- decay_tau_s=decay_tau_s,- fit_ratio=fit_ratio,- min_samples=min_samples,- agreement_tol=agreement_tol,- max_error=max_reprojection_error,- )+ def make_lengths(seeds: dict[str, float]) -> RollingBoneLengths:+ return RollingBoneLengths(bone_seeds=seeds, window_s=window_s)body_lengths = make_lengths(body_seeds)rhand_lengths = make_lengths(hand_seeds)lhand_lengths = make_lengths(hand_seeds)- ritual = SegmentFitRitual(- body_lengths=body_lengths,- rhand_lengths=rhand_lengths,- lhand_lengths=lhand_lengths,- countdown_s=countdown_s,- capture_min_visible_fraction=capture_min_visible_fraction,- capture_max_mean_error_px=capture_max_mean_error_px,- capture_consecutive_good_frames=capture_consecutive_good_frames,- capture_update_min_visible_fraction=capture_update_min_visible_fraction,- capture_timeout_s=capture_timeout_s,- )return cls(_body_mapping=body_mapping,@@ -416,7 +317,6 @@ class RealtimeSkeletonRigidifier:_lhand_lengths=lhand_lengths,_hand_name_to_tracker_r=name_to_tracker_r,_hand_name_to_tracker_l=name_to_tracker_l,- _ritual=ritual,height_mm=height_mm,)@@ -426,7 +326,6 @@ class RealtimeSkeletonRigidifier:*,measured: dict[str, np.ndarray],t: float,- errors: dict[str, float] | None,) -> RigidifyResult:"""Rigidify one frame of the configured detector's raw keypoints.@@ -437,21 +336,11 @@ class RealtimeSkeletonRigidifier:extrapolations β drives the rigidified output only.measured : dict[str, (3,) ndarray]The real-only subset of ``tracker_positions`` (extrapolated points- removed) β the only positions allowed to teach bone lengths.- Synthesized canonical centers degrade to a partial mean of their- real sources when some sources are extrapolated; the trust region- and agreement gate bound that bias.+ removed) β the only positions allowed to teach bone lengths, so a+ gap-filled joint never feeds its own enforced length back in.t : float- Frame timestamp (s); drives the buffers' age decay and the ritual- countdown. The caller owns the clock.- errors : dict[str, float] | None- Per-tracker-keypoint reprojection error (px); the bone-length- estimator uses it to rank/gate samples so high-error frames don't- corrupt the lengths. Most body limb landmarks share names with the- canonical model directly (both RTMPose and MediaPipe use core COCO- limb names); hand errors are remapped from the side-prefixed- tracker names. None (single-camera mode) = all samples treated as- equally confident.+ Frame timestamp (s); drives the rolling window's eviction. The+ caller owns the clock."""canonical_body = self._body_mapping.apply(tracker_positions)canonical_rhand = self._hand_mapping_r.apply(tracker_positions)@@ -461,15 +350,9 @@ class RealtimeSkeletonRigidifier:measured_rhand = self._hand_mapping_r.apply(measured)measured_lhand = self._hand_mapping_l.apply(measured)- self._ritual.on_frame(- measured_body=measured_body,- measured_rhand=measured_rhand,- measured_lhand=measured_lhand,- errors_body=errors,- errors_rhand=_hand_errors(errors, self._hand_name_to_tracker_r),- errors_lhand=_hand_errors(errors, self._hand_name_to_tracker_l),- t=t,- )+ self._body_lengths.update(measured_body, t=t)+ self._rhand_lengths.update(measured_rhand, t=t)+ self._lhand_lengths.update(measured_lhand, t=t)body_out = self._body_tree.rigidify(canonical_body, self._body_lengths.lengths)rhand_out = self._hand_tree_r.rigidify(canonical_rhand, self._rhand_lengths.lengths)@@ -492,21 +375,19 @@ class RealtimeSkeletonRigidifier:right_hand_positions=rhand_tracker,)- def request_refit(self) -> None:- """Arm the refit ritual: countdown β quality-gated capture β freeze.+ def reset(self) -> None:+ """Forget learned lengths and gap-fill directions.- Clears the carried gap-fill directions on all trees immediately; the- length buffers clear when the countdown begins on the next frame.+ Clears the rolling-window length buffers (estimates fall back to the+ anthropometric seeds) and the carried per-bone gap-fill directions, so+ the next frames re-derive everything from fresh observations."""self._body_tree.reset()self._hand_tree_r.reset()self._hand_tree_l.reset()- self._ritual.request_refit()-- @property- def fit_state(self) -> FitStateSnapshot:- """Current ritual state, for publication to the frontend."""- return self._ritual.snapshot()+ self._body_lengths.reset()+ self._rhand_lengths.reset()+ self._lhand_lengths.reset()@propertydef body_bone_lengths(self) -> dict[str, float]:diff --git a/freemocap/core/tasks/triangulation/triangulator.py b/freemocap/core/tasks/triangulation/triangulator.pyindex 8d5413be..e51cce46 100644--- a/freemocap/core/tasks/triangulation/triangulator.py+++ b/freemocap/core/tasks/triangulation/triangulator.py@@ -241,6 +241,7 @@ class Triangulator(BaseModel):) # (n_batch, 3)if config.use_outlier_rejection:+ logger.info("Using outlier rejection with target reprojection error %.4f", config.target_reprojection_error)# Batch-project to check normalized reprojection errorn_batch = batch_idx.sizehom = np.concatenate(diff --git a/freemocap/pubsub/pubsub_topics.py b/freemocap/pubsub/pubsub_topics.pyindex a929bea4..8901356d 100644--- a/freemocap/pubsub/pubsub_topics.py+++ b/freemocap/pubsub/pubsub_topics.py@@ -17,7 +17,6 @@ from skellytracker.core.data_primitives.observation import Observationfrom freemocap.core.kinematics.body_kinematics_state import BodyKinematicsStatefrom freemocap.core.pipeline.realtime.realtime_pipeline_config import RealtimePipelineConfigfrom freemocap.core.tasks.mocap.center_of_mass import CenterOfMassResult-from freemocap.core.tasks.mocap.rigid_body.segment_fit_ritual import FitStateSnapshotfrom freemocap.core.types.type_overloads import (FrameNumberInt,PipelineIdString,@@ -207,54 +206,14 @@ class CalibrationRecordingStateMessage(TopicMessageABC):@dataclassclass SkeletonFitterResetMessage(TopicMessageABC):- """Arm the segment-fit calibration ritual on every live pipeline.+ """Clear the rolling bone-length windows on every live pipeline.Presence of this message in the subscription queue signals the aggregator to- call ``RealtimeSkeletonRigidifier.request_refit()`` β starting the countdown- β quality-gated capture β freeze ritual instead of an instant next-frame- re-fit.+ call ``RealtimeSkeletonRigidifier.reset()`` β dropping the learned lengths so+ the next ~window seconds re-fit from fresh observations."""-@dataclass-class SkeletonFitStateMessage(TopicMessageABC):- """Per-frame snapshot of the segment-fit calibration ritual.-- Published by the aggregator every frame the rigidifier runs, so the- frontend can render the ritual ("hold still β capturing in 3β¦2β¦1 β- locked") and spot a bonked fit (high ``median_seed_deviation``).- """-- state: str = "idle"- countdown_remaining_s: float = 0.0- capture_good_streak: int = 0- capture_required_good_frames: int = 0- capture_min_visible_fraction: float = 0.0- capture_max_mean_error_px: float = 0.0- capture_timeout_remaining_s: float = 0.0- visible_fraction: float = 0.0- mean_error_px: float | None = None- n_fitted_body_bones: int = 0- median_seed_deviation: float | None = None-- @classmethod- def from_snapshot(cls, snapshot: FitStateSnapshot) -> "SkeletonFitStateMessage":- return cls(- state=snapshot.state,- countdown_remaining_s=snapshot.countdown_remaining_s,- capture_good_streak=snapshot.capture_good_streak,- capture_required_good_frames=snapshot.capture_required_good_frames,- capture_min_visible_fraction=snapshot.capture_min_visible_fraction,- capture_max_mean_error_px=snapshot.capture_max_mean_error_px,- capture_timeout_remaining_s=snapshot.capture_timeout_remaining_s,- visible_fraction=snapshot.visible_fraction,- mean_error_px=snapshot.mean_error_px,- n_fitted_body_bones=snapshot.n_fitted_body_bones,- median_seed_deviation=snapshot.median_seed_deviation,- )---# ---------------------------------------------------------------------------# Topic instantiation# ---------------------------------------------------------------------------@@ -268,6 +227,5 @@ AggregationNodeOutputTopic = create_topic(AggregationNodeOutputMessage)PipelineTimingTopic = create_topic(PipelineTimingMessage)CalibrationRecordingStateTopic = create_topic(CalibrationRecordingStateMessage)SkeletonFitterResetTopic = create_topic(SkeletonFitterResetMessage)-SkeletonFitStateTopic = create_topic(SkeletonFitStateMessage)diff --git a/freemocap/tests/rigid_body/test_bone_length_buffer.py b/freemocap/tests/rigid_body/test_bone_length_buffer.pydeleted file mode 100644index 80ebb316..00000000--- a/freemocap/tests/rigid_body/test_bone_length_buffer.py+++ /dev/null@@ -1,134 +0,0 @@-"""Unit tests for the streaming best-K bone-length buffer.--The buffer keeps the best-K bone-length measurements seen so far, ranked by-reprojection error with an age decay, and reports their median once enough-samples agree β always inside a trust region anchored to the seed. It is the-realtime analogue of the posthoc pipeline's per-bone median over all frames.-"""-import pytest--from freemocap.core.tasks.mocap.rigid_body.online_segment_lengths import BoneLengthBuffer---def _buf(**overrides) -> BoneLengthBuffer:- kwargs = dict(capacity=8, decay_tau_s=1e12, seed_length=100.0)- kwargs.update(overrides)- return BoneLengthBuffer(**kwargs)---def test_estimate_is_seed_when_empty():- buf = _buf()- assert buf.estimate == 100.0- assert len(buf) == 0---def test_single_offer_does_not_replace_seed():- # Bootstrap protection: min_samples=5 by default β one frame teaches nothing.- buf = _buf()- assert buf.offer(length=110.0, error=1.0, t=0.0) is True- assert buf.estimate == 100.0---def test_agreeing_samples_replace_seed_with_median():- buf = _buf()- for i in range(5):- assert buf.offer(length=110.0 + i * 0.1, error=1.0, t=float(i)) is True- assert buf.estimate == pytest.approx(110.2)---def test_bimodal_samples_never_replace_seed():- # Alternating 90 / 110: relative MAD is 10% > agreement_tol (5%) β no consensus.- buf = _buf()- for i in range(10):- buf.offer(length=90.0 if i % 2 == 0 else 110.0, error=1.0, t=float(i))- assert buf.estimate == 100.0---def test_trust_region_rejects_out_of_spec_lengths():- # seed 100, fit_ratio 0.2 -> [80, 120].- buf = _buf(fit_ratio=0.2)- assert buf.offer(length=79.9, error=1.0, t=0.0) is False- assert buf.offer(length=120.1, error=1.0, t=1.0) is False- assert buf.offer(length=80.0, error=1.0, t=2.0) is True- assert buf.offer(length=120.0, error=1.0, t=3.0) is True---def test_trust_region_floor_is_25_percent_of_seed():- # ratio 1.0 would allow [0, 200] β the floor clamps the lower bound to 25.- buf = _buf(fit_ratio=1.0)- assert buf.offer(length=24.9, error=1.0, t=0.0) is False- assert buf.offer(length=25.0, error=1.0, t=1.0) is True- assert buf.offer(length=200.0, error=1.0, t=2.0) is True- assert buf.offer(length=200.1, error=1.0, t=3.0) is False---def test_garbage_stream_can_never_establish_a_new_anchor():- # A sustained stream of out-of-region garbage is rejected forever, so the- # estimate can never get stuck on it β and good data is still accepted after.- buf = _buf(fit_ratio=0.2)- for i in range(20):- assert buf.offer(length=300.0, error=0.0, t=float(i)) is False- assert buf.estimate == 100.0- for i in range(5):- assert buf.offer(length=110.0, error=1.0, t=100.0 + i) is True- assert buf.estimate == pytest.approx(110.0)---def test_reproj_gate_drops_high_error_samples():- buf = _buf(max_error=5.0)- assert buf.offer(length=110.0, error=50.0, t=0.0) is False- assert len(buf) == 0- assert buf.estimate == 100.0---def test_keeps_best_k_by_error_when_over_capacity():- # capacity 2, effectively no decay: the worst-error sample must not survive.- buf = _buf(capacity=2, min_samples=1)- buf.offer(length=110.0, error=1.0, t=0.0)- buf.offer(length=111.0, error=2.0, t=1.0)- buf.offer(length=112.0, error=9.0, t=2.0) # worst error -> evicted- assert len(buf) == 2- assert buf.estimate == 110.5 # median of {110, 111}---def test_decay_lets_fresh_sample_replace_stale_better_one():- # With a short decay, a stale low-error sample is evicted for a fresh,- # higher-error one (age inflates the stale sample's effective error).- buf = _buf(capacity=1, decay_tau_s=1.0, min_samples=1)- buf.offer(length=110.0, error=0.1, t=0.0)- assert buf.estimate == 110.0- buf.offer(length=115.0, error=1.0, t=100.0) # much later- assert buf.estimate == 115.0---def test_no_decay_keeps_lower_error_sample():- # With negligible decay, the lower-error sample wins regardless of age.- buf = _buf(capacity=1, min_samples=1)- buf.offer(length=110.0, error=0.1, t=0.0)- assert buf.offer(length=115.0, error=1.0, t=100.0) is False # higher error -> rejected- assert buf.estimate == 110.0---def test_reseed_reanchors_and_clears():- buf = _buf(fit_ratio=0.2)- for i in range(5):- buf.offer(length=110.0, error=1.0, t=float(i))- assert buf.estimate == pytest.approx(110.0)-- buf.reseed(300.0)-- assert buf.estimate == 300.0- assert len(buf) == 0- # The trust region re-centered: 110 is now out of spec, 330 is in.- assert buf.offer(length=110.0, error=1.0, t=10.0) is False- for i in range(5):- assert buf.offer(length=330.0, error=1.0, t=20.0 + i) is True- assert buf.estimate == pytest.approx(330.0)---def test_reseed_rejects_invalid_length():- buf = _buf()- with pytest.raises(ValueError):- buf.reseed(0.0)- with pytest.raises(ValueError):- buf.reseed(float("nan"))diff --git a/freemocap/tests/rigid_body/test_online_bone_lengths.py b/freemocap/tests/rigid_body/test_online_bone_lengths.pydeleted file mode 100644index 8ff27d9b..00000000--- a/freemocap/tests/rigid_body/test_online_bone_lengths.py+++ /dev/null@@ -1,108 +0,0 @@-"""Unit tests for the multi-bone online length manager."""-import numpy as np-import pytest--from freemocap.core.tasks.mocap.rigid_body.online_segment_lengths import OnlineBoneLengths---def _make(**overrides) -> OnlineBoneLengths:- kwargs = dict(- bone_seeds={"a->b": 100.0, "b->c": 80.0},- capacity=8,- decay_tau_s=1e12,- min_samples=1,- fit_ratio=1.0,- )- kwargs.update(overrides)- return OnlineBoneLengths(**kwargs)---def test_lengths_are_seeds_before_any_update():- online = _make()- assert online.lengths == {"a->b": 100.0, "b->c": 80.0}---def test_update_measures_observed_bones():- online = _make()- positions = {- "a": np.array([0.0, 0.0, 0.0]),- "b": np.array([0.0, 150.0, 0.0]),- "c": np.array([0.0, 150.0, 90.0]),- }- online.update(positions, errors={"a": 1.0, "b": 1.0, "c": 1.0}, t=0.0)- assert online.lengths["a->b"] == 150.0 # |b - a|- assert online.lengths["b->c"] == 90.0 # |c - b|---def test_bone_with_missing_endpoint_keeps_seed():- online = _make()- online.update({"a": np.array([0.0, 0.0, 0.0])}, errors={"a": 1.0}, t=0.0) # b, c missing- assert online.lengths["a->b"] == 100.0 # untouched seed- assert online.lengths["b->c"] == 80.0---def test_bone_error_is_worst_endpoint_and_gates():- # b has a high reprojection error -> both bones touching b are gated out.- online = _make(max_error=5.0)- positions = {- "a": np.array([0.0, 0.0, 0.0]),- "b": np.array([0.0, 150.0, 0.0]),- "c": np.array([0.0, 150.0, 90.0]),- }- online.update(positions, errors={"a": 1.0, "b": 50.0, "c": 1.0}, t=0.0)- assert online.lengths["a->b"] == 100.0 # gated (b bad) -> seed- assert online.lengths["b->c"] == 80.0 # gated (b bad) -> seed---def test_update_without_errors_still_measures():- online = _make(max_error=5.0)- positions = {"a": np.array([0.0, 0.0, 0.0]), "b": np.array([0.0, 150.0, 0.0])}- online.update(positions, t=0.0) # no errors -> treated as confident- assert online.lengths["a->b"] == 150.0---def test_trust_region_rejects_out_of_spec_measurement():- online = _make(fit_ratio=0.2) # region for seed 100: [80, 120]- positions = {"a": np.zeros(3), "b": np.array([0.0, 150.0, 0.0])}- online.update(positions, errors={"a": 1.0, "b": 1.0}, t=0.0)- assert online.lengths["a->b"] == 100.0 # 150 is out of region -> seed stands---def test_agreement_required_before_leaving_seed():- online = _make(min_samples=5, fit_ratio=0.5) # region for seed 100: [50, 150]- positions = {"a": np.zeros(3), "b": np.array([0.0, 130.0, 0.0])}- for i in range(4):- online.update(positions, errors={"a": 1.0, "b": 1.0}, t=float(i))- assert online.lengths["a->b"] == 100.0 # 4 < min_samples- assert online.agreed_medians()["a->b"] is None- online.update(positions, errors={"a": 1.0, "b": 1.0}, t=4.0)- assert online.lengths["a->b"] == pytest.approx(130.0)- assert online.agreed_medians()["a->b"] == pytest.approx(130.0)---def test_reseed_reanchors_bones():- online = _make()- online.reseed({"a->b": 300.0})- assert online.lengths["a->b"] == 300.0- assert online.seeds["a->b"] == 300.0- assert online.lengths["b->c"] == 80.0 # untouched---def test_reseed_unknown_bone_raises():- online = _make()- with pytest.raises(KeyError):- online.reseed({"x->y": 100.0})---def test_reset_restores_seeds():- online = _make()- online.update(- {"a": np.array([0.0, 0.0, 0.0]), "b": np.array([0.0, 150.0, 0.0])},- errors={"a": 1.0, "b": 1.0},- t=0.0,- )- assert online.lengths["a->b"] == 150.0 # learned a real length, not the seed-- online.reset()-- assert online.lengths == {"a->b": 100.0, "b->c": 80.0} # every buffer back to its seeddiff --git a/freemocap/tests/rigid_body/test_realtime_skeleton_rigidifier.py b/freemocap/tests/rigid_body/test_realtime_skeleton_rigidifier.pyindex a1819bca..d2c7b421 100644--- a/freemocap/tests/rigid_body/test_realtime_skeleton_rigidifier.py+++ b/freemocap/tests/rigid_body/test_realtime_skeleton_rigidifier.py@@ -30,7 +30,7 @@ def _upright_rtmpose_pose() -> dict[str, np.ndarray]:def _frame(rig: RealtimeSkeletonRigidifier, pose: dict[str, np.ndarray], t: float):- return rig.rigidify_frame(pose, measured=pose, t=t, errors=None)+ return rig.rigidify_frame(pose, measured=pose, t=t)def test_create_seeds_all_bones():@@ -88,34 +88,31 @@ def test_predicted_points_never_teach_lengths():measured = dict(pose)del measured["left_elbow"] # simulated: elbow extrapolated this framefor i in range(6):- rig.rigidify_frame(pose, measured=measured, t=float(i), errors=None)+ rig.rigidify_frame(pose, measured=measured, t=float(i))assert rig.body_bone_lengths["left_shoulder->left_elbow"] == pytest.approx(seed)-def test_request_refit_reruns_capture_before_learning_again():- rig = RealtimeSkeletonRigidifier.create(- height_mm=1750.0,- countdown_s=0.5,- capture_min_visible_fraction=0.1,- capture_consecutive_good_frames=3,- )+def test_lengths_track_measured_median():+ # Consistent observations pull each estimate to the observed length (the+ # rolling-window median), leaving the anthropometric seed behind.+ rig = RealtimeSkeletonRigidifier.create(height_mm=1750.0)pose = _upright_rtmpose_pose()seed = rig.body_bone_lengths["left_shoulder->left_elbow"]+ observed = float(np.linalg.norm(pose["left_elbow"] - pose["left_shoulder"]))for i in range(6):_frame(rig, pose, t=float(i))learned = rig.body_bone_lengths["left_shoulder->left_elbow"]- assert abs(learned - seed) > 1.0 # consistent measurements replaced the seed+ assert learned == pytest.approx(observed) # median of identical frames+ assert abs(learned - seed) > 1.0 # actually moved off the seed- rig.request_refit()- _frame(rig, pose, t=10.0) # countdown begins; buffers cleared- assert rig.body_bone_lengths["left_shoulder->left_elbow"] == pytest.approx(seed)- assert rig.fit_state.state == "countdown"- _frame(rig, pose, t=10.6) # deadline passed -> capture window opens- # The required streak is max(3 configured, min_samples=5) = 5 consecutive- # good frames β the freeze only captures bones that reached agreement.+def test_reset_clears_learned_lengths():+ rig = RealtimeSkeletonRigidifier.create(height_mm=1750.0)+ pose = _upright_rtmpose_pose()+ seed = rig.body_bone_lengths["left_shoulder->left_elbow"]for i in range(6):- _frame(rig, pose, t=10.7 + i * 0.1)- assert rig.fit_state.state == "fitted"- refit = rig.body_bone_lengths["left_shoulder->left_elbow"]- assert refit == pytest.approx(learned, rel=0.05)+ _frame(rig, pose, t=float(i))+ assert abs(rig.body_bone_lengths["left_shoulder->left_elbow"] - seed) > 1.0++ rig.reset() # forget the rolling window -> back to seeds+ assert rig.body_bone_lengths["left_shoulder->left_elbow"] == pytest.approx(seed)diff --git a/freemocap/tests/rigid_body/test_rolling_bone_lengths.py b/freemocap/tests/rigid_body/test_rolling_bone_lengths.pynew file mode 100644index 00000000..5c77d763--- /dev/null+++ b/freemocap/tests/rigid_body/test_rolling_bone_lengths.py@@ -0,0 +1,86 @@+"""Unit tests for the rolling-window median bone-length estimator.++Each bone reports the median of its measured lengths over the last ``window_s``+seconds β the streaming analogue of the posthoc per-bone median β and falls back+to its anthropometric seed whenever the window is empty. No trust region, no+agreement gating, no error weighting: a plain rolling median.+"""+import numpy as np++from freemocap.core.tasks.mocap.rigid_body.online_segment_lengths import RollingBoneLengths+++def _make(**overrides) -> RollingBoneLengths:+ kwargs = dict(+ bone_seeds={"a->b": 100.0, "b->c": 80.0},+ window_s=10.0,+ )+ kwargs.update(overrides)+ return RollingBoneLengths(**kwargs)+++def _ab(length: float) -> dict[str, np.ndarray]:+ """Positions that make |b - a| == length (b->c left unmeasured)."""+ return {"a": np.array([0.0, 0.0, 0.0]), "b": np.array([0.0, length, 0.0])}+++def test_lengths_are_seeds_before_any_update():+ rolling = _make()+ assert rolling.lengths == {"a->b": 100.0, "b->c": 80.0}+++def test_single_measurement_used_immediately():+ # Pure median: one sample is its own median β no min-samples bootstrap.+ rolling = _make()+ rolling.update(_ab(150.0), t=0.0)+ assert rolling.lengths["a->b"] == 150.0+ assert rolling.lengths["b->c"] == 80.0 # never measured -> seed+++def test_lengths_is_median_of_window():+ rolling = _make()+ for i, length in enumerate((140.0, 150.0, 160.0)):+ rolling.update(_ab(length), t=float(i))+ assert rolling.lengths["a->b"] == 150.0 # median of 3+++def test_median_of_even_count_is_mean_of_middle_two():+ rolling = _make()+ for i, length in enumerate((140.0, 160.0)):+ rolling.update(_ab(length), t=float(i))+ assert rolling.lengths["a->b"] == 150.0 # numpy median of 2 -> mean+++def test_bone_with_missing_endpoint_is_not_measured():+ rolling = _make()+ rolling.update({"a": np.array([0.0, 0.0, 0.0])}, t=0.0) # b, c absent+ assert rolling.lengths["a->b"] == 100.0+ assert rolling.lengths["b->c"] == 80.0+++def test_measurements_older_than_window_are_evicted():+ rolling = _make(window_s=10.0)+ rolling.update(_ab(100.0), t=0.0)+ rolling.update(_ab(200.0), t=5.0)+ assert rolling.lengths["a->b"] == 150.0 # median {100, 200}+ rolling.update(_ab(300.0), t=11.0) # t=0 sample is now >10s old -> evicted+ assert rolling.lengths["a->b"] == 250.0 # median {200, 300}+++def test_unseen_bone_falls_back_to_seed_after_window():+ # A bone that drops out of view longer than the window loses all samples and+ # returns to its seed β eviction is by wall-clock, not only on measurement.+ rolling = _make(window_s=10.0)+ rolling.update(_ab(150.0), t=0.0)+ assert rolling.lengths["a->b"] == 150.0+ rolling.update({"b": np.array([0.0, 0.0, 0.0]), "c": np.array([0.0, 90.0, 0.0])}, t=100.0)+ assert rolling.lengths["a->b"] == 100.0 # a->b window emptied -> seed+ assert rolling.lengths["b->c"] == 90.0 # b->c freshly measured+++def test_reset_restores_seeds():+ rolling = _make()+ rolling.update(_ab(150.0), t=0.0)+ assert rolling.lengths["a->b"] == 150.0+ rolling.reset()+ assert rolling.lengths == {"a->b": 100.0, "b->c": 80.0}diff --git a/freemocap/tests/rigid_body/test_segment_fit_ritual.py b/freemocap/tests/rigid_body/test_segment_fit_ritual.pydeleted file mode 100644index ebc9c512..00000000--- a/freemocap/tests/rigid_body/test_segment_fit_ritual.py+++ /dev/null@@ -1,227 +0,0 @@-"""Unit tests for the segment-fit calibration ritual state machine."""-import numpy as np-import pytest--from freemocap.core.tasks.mocap.rigid_body.online_segment_lengths import OnlineBoneLengths-from freemocap.core.tasks.mocap.rigid_body.segment_fit_ritual import (- FitRitualState,- SegmentFitRitual,-)--# Measured bone lengths in the synthetic frames: 440 / 330 (seeds 400 / 300,-# both inside the fit_ratio=0.5 trust region).-HIPS = np.array([0.0, 0.0, 0.0])-SPINE = np.array([0.0, 440.0, 0.0])-CHEST = np.array([0.0, 770.0, 0.0])-NECK = np.array([0.0, 580.0, 0.0]) # |neck - spine| = 140, region [50, 150]--GOOD_FRAME = {"hips": HIPS, "spine": SPINE, "chest": CHEST}---def _lengths(seeds: dict[str, float] | None = None, **overrides) -> OnlineBoneLengths:- kwargs = dict(- bone_seeds=seeds or {"hips->spine": 400.0, "spine->chest": 300.0},- capacity=16,- decay_tau_s=1e12,- fit_ratio=0.5,- min_samples=3,- agreement_tol=0.05,- )- kwargs.update(overrides)- return OnlineBoneLengths(**kwargs)---def _ritual(body: OnlineBoneLengths, **overrides) -> SegmentFitRitual:- kwargs = dict(- body_lengths=body,- rhand_lengths=_lengths({"ra->rb": 10.0}),- lhand_lengths=_lengths({"la->lb": 10.0}),- countdown_s=1.0,- capture_min_visible_fraction=0.5,- capture_max_mean_error_px=5.0,- capture_consecutive_good_frames=3,- capture_update_min_visible_fraction=0.25,- capture_timeout_s=15.0,- )- kwargs.update(overrides)- return SegmentFitRitual(**kwargs)---def _frame(ritual: SegmentFitRitual, t: float, body_frame=None, errors_body=None) -> None:- ritual.on_frame(- measured_body=GOOD_FRAME if body_frame is None else body_frame,- measured_rhand={},- measured_lhand={},- errors_body=errors_body,- errors_rhand=None,- errors_lhand=None,- t=t,- )---def test_idle_updates_normally():- body = _lengths()- ritual = _ritual(body)- for i in range(3):- _frame(ritual, t=float(i))- assert ritual.state == FitRitualState.IDLE- assert body.lengths["hips->spine"] == pytest.approx(440.0)- assert body.lengths["spine->chest"] == pytest.approx(330.0)---def test_refit_countdown_blocks_updates_and_restores_seeds():- body = _lengths()- ritual = _ritual(body)- for i in range(3):- _frame(ritual, t=float(i))- assert body.lengths["hips->spine"] == pytest.approx(440.0) # learned-- ritual.request_refit()- _frame(ritual, t=10.0) # countdown begins; buffers cleared-- assert ritual.state == FitRitualState.COUNTDOWN- assert body.lengths["hips->spine"] == 400.0 # back to the seed-- _frame(ritual, t=10.5) # deadline is 11.0 β still counting down- assert body.lengths["hips->spine"] == 400.0 # no updates during countdown-- snap = ritual.snapshot()- assert snap.state == "countdown"- assert snap.countdown_remaining_s == pytest.approx(0.5)- assert snap.visible_fraction == 1.0---def test_capture_freezes_after_consecutive_good_frames():- body = _lengths()- ritual = _ritual(body)- ritual.request_refit()- _frame(ritual, t=10.0) # armed- _frame(ritual, t=11.0) # deadline reached -> CAPTURING-- _frame(ritual, t=11.1) # good frame 1- _frame(ritual, t=11.2) # good frame 2- assert ritual.state == FitRitualState.CAPTURING- assert body.lengths["hips->spine"] == 400.0 # not frozen yet-- _frame(ritual, t=11.3) # good frame 3 -> freeze- assert ritual.state == FitRitualState.FITTED- assert body.lengths["hips->spine"] == pytest.approx(440.0) # captured re-anchor- assert body.lengths["spine->chest"] == pytest.approx(330.0)-- snap = ritual.snapshot()- assert snap.n_fitted_body_bones == 2- # Both captured lengths deviate 10% from their seeds.- assert snap.median_seed_deviation == pytest.approx(0.1)---def test_bad_frame_resets_good_streak():- body = _lengths()- ritual = _ritual(body)- ritual.request_refit()- _frame(ritual, t=10.0)- _frame(ritual, t=11.0) # capturing-- _frame(ritual, t=11.1) # streak 1- _frame(ritual, t=11.2) # streak 2- _frame(ritual, t=11.3, body_frame={"hips": HIPS}) # low visibility -> streak 0- _frame(ritual, t=11.4, errors_body={"hips": 50.0, "spine": 50.0, "chest": 50.0}) # high error -> 0- assert ritual.state == FitRitualState.CAPTURING- assert ritual.snapshot().capture_good_streak == 0-- _frame(ritual, t=11.5)- _frame(ritual, t=11.6)- assert ritual.state == FitRitualState.CAPTURING- _frame(ritual, t=11.7)- assert ritual.state == FitRitualState.FITTED---def test_unfitted_bones_keep_seeds_and_stay_live():- body = _lengths({"hips->spine": 400.0, "spine->chest": 300.0, "spine->neck": 100.0})- ritual = _ritual(body)- ritual.request_refit()- _frame(ritual, t=10.0)- _frame(ritual, t=11.0)- for i in range(3):- _frame(ritual, t=11.1 + i * 0.1) # neck never visible -> never agrees-- assert ritual.state == FitRitualState.FITTED- assert body.lengths["spine->neck"] == 100.0 # seed kept (not captured)- assert ritual.snapshot().n_fitted_body_bones == 2-- # FITTED keeps updating: the never-fitted bone can still learn, bounded- # by its own (still anthropometric) trust region.- full = dict(GOOD_FRAME, neck=NECK)- for i in range(3):- _frame(ritual, t=12.0 + i * 0.1, body_frame=full)- assert body.lengths["spine->neck"] == pytest.approx(140.0)---def test_fitted_drift_is_bounded_by_captured_anchor():- body = _lengths()- ritual = _ritual(body)- ritual.request_refit()- _frame(ritual, t=10.0)- _frame(ritual, t=11.0)- for i in range(3):- _frame(ritual, t=11.1 + i * 0.1)- assert ritual.state == FitRitualState.FITTED-- # A wild measurement after the freeze is rejected by the re-anchored- # trust region (440 x (1 +/- 0.5) = [220, 660]).- wild = dict(GOOD_FRAME, spine=np.array([0.0, 900.0, 0.0]))- _frame(ritual, t=12.0, body_frame=wild)- assert body.lengths["hips->spine"] == pytest.approx(440.0)---def test_timeout_best_effort_freeze_fits_visible_bones():- # The desk scenario: the "good" gate (min_visible=0.9) never passes- # because a third of the body is always hidden, but updatable frames- # (floor=0.5) still teach the visible bones β and the timeout ends the- # ritual instead of capturing forever.- body = _lengths()- ritual = _ritual(- body,- capture_min_visible_fraction=0.9,- capture_update_min_visible_fraction=0.5,- capture_timeout_s=5.0,- )- ritual.request_refit()- _frame(ritual, t=10.0)- _frame(ritual, t=11.0) # capturing-- partial = {"hips": HIPS, "spine": SPINE} # 2/3 visible: updatable, never good- for i in range(6):- _frame(ritual, t=11.1 + i * 0.1, body_frame=partial)- assert ritual.state == FitRitualState.CAPTURING- assert ritual.snapshot().capture_good_streak == 0-- snap = ritual.snapshot()- assert snap.capture_timeout_remaining_s == pytest.approx(5.0 - 0.6)-- _frame(ritual, t=16.1, body_frame=partial) # past the 5 s timeout- assert ritual.state == FitRitualState.FITTED- assert body.lengths["hips->spine"] == pytest.approx(440.0) # visible bone fitted- assert body.lengths["spine->chest"] == 300.0 # hidden bone keeps its seed- assert ritual.snapshot().n_fitted_body_bones == 1---def test_timeout_without_any_agreement_returns_to_idle():- # Every frame fails the error gate: nothing is updatable, nothing agrees,- # so the timeout drops the ritual back to normal live fitting β seeds- # untouched, no FITTED fanfare.- body = _lengths()- ritual = _ritual(body, capture_timeout_s=5.0)- ritual.request_refit()- _frame(ritual, t=10.0)- _frame(ritual, t=11.0) # capturing-- noisy = {"hips": 50.0, "spine": 50.0, "chest": 50.0}- _frame(ritual, t=11.5, errors_body=noisy)- _frame(ritual, t=16.2, errors_body=noisy) # past the timeout- assert ritual.state == FitRitualState.IDLE- assert body.lengths["hips->spine"] == 400.0-- # IDLE resumes ungated live fitting.- for i in range(3):- _frame(ritual, t=17.0 + i * 0.1)- assert body.lengths["hips->spine"] == pytest.approx(440.0)diff --git a/uv.lock b/uv.lockindex 0101d61d..01cf9bc1 100644--- a/uv.lock+++ b/uv.lock@@ -69,8 +69,8 @@ name = "anyio"version = "4.14.2"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "idna", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "typing-extensions", marker = "(python_full_version < '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux') or (python_full_version < '3.13' and platform_machine == 'AMD64' and sys_platform == 'win32') or (python_full_version < '3.13' and sys_platform == 'darwin')" },+ { name = "idna" },+ { name = "typing-extensions", marker = "python_full_version < '3.13'" },]sdist = { url = "https://files.pythonhosted.org/packages/61/cc/a381afa6efea9f496eff839d4a6a1aed3bfafc7b3ab4b0d1b243a12573dd/anyio-4.14.2.tar.gz", hash = "sha256:cfa139f3ed1a23ee8f88a145ddb5ac7605b8bbfd8592baacd7ce3d8bb4313c7f", size = 260176, upload-time = "2026-07-12T20:29:07.082Z" }wheels = [@@ -109,9 +109,9 @@ name = "build"version = "1.5.0"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "colorama", marker = "os_name == 'nt' and platform_machine == 'AMD64' and sys_platform == 'win32'" },- { name = "packaging", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pyproject-hooks", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "colorama", marker = "os_name == 'nt' and sys_platform == 'win32'" },+ { name = "packaging" },+ { name = "pyproject-hooks" },]sdist = { url = "https://files.pythonhosted.org/packages/78/e0/df5e171f685f82f37b12e1f208064e24244911079d7b767447d1af7e0d70/build-1.5.0.tar.gz", hash = "sha256:302c22c3ba2a0fd5f3911918651341ebb3896176cbdec15bd421f80b1afc7647", size = 89796, upload-time = "2026-04-30T03:18:25.17Z" }wheels = [@@ -123,10 +123,10 @@ name = "bumpver"version = "2026.1132"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "click", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "colorama", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "lexid", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "toml", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "click" },+ { name = "colorama" },+ { name = "lexid" },+ { name = "toml" },]sdist = { url = "https://files.pythonhosted.org/packages/25/22/c0c9bf9e7ad6877e4c7c3dedd464e390d9fadb8927c61d6d77547eb17539/bumpver-2026.1132.tar.gz", hash = "sha256:80b223c23fca9bc9dd569b7a44680949d34bee23a738860d9a9b36f1abe3b0e0", size = 116784, upload-time = "2026-05-22T18:40:32.333Z" }wheels = [@@ -147,7 +147,7 @@ name = "cffi"version = "2.1.0"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "pycparser", marker = "(implementation_name != 'PyPy' and platform_machine == 'x86_64' and sys_platform == 'linux') or (implementation_name != 'PyPy' and platform_machine == 'AMD64' and sys_platform == 'win32') or (implementation_name != 'PyPy' and sys_platform == 'darwin')" },+ { name = "pycparser", marker = "implementation_name != 'PyPy'" },]sdist = { url = "https://files.pythonhosted.org/packages/57/5f/ff100cae70ebe9d8df1c01a00e510e45d9adb5c1fdda84791b199141de97/cffi-2.1.0.tar.gz", hash = "sha256:efc1cdd798b1aaf39b4610bba7aad28c9bea9b910f25c784ccf9ec1fa719d1f9", size = 531036, upload-time = "2026-07-06T21:34:30.382Z" }wheels = [@@ -228,7 +228,7 @@ name = "click"version = "8.4.2"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "colorama", marker = "platform_machine == 'AMD64' and sys_platform == 'win32'" },+ { name = "colorama", marker = "sys_platform == 'win32'" },]sdist = { url = "https://files.pythonhosted.org/packages/76/d4/81420972a676e8ffea40450d8c8c92943e7218a78fe9b64359836cc9876b/click-8.4.2.tar.gz", hash = "sha256:9a6cea6e60b17ebe0a44c5cc636d94f09bd66142c1cd7d8b4cd731c4917a15f6", size = 338000, upload-time = "2026-06-24T17:45:15.148Z" }wheels = [@@ -249,7 +249,7 @@ name = "contourpy"version = "1.3.3"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "numpy", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "numpy" },]sdist = { url = "https://files.pythonhosted.org/packages/58/01/1253e6698a07380cd31a736d248a3f2a50a7c88779a1813da27503cadc2a/contourpy-1.3.3.tar.gz", hash = "sha256:083e12155b210502d0bca491432bb04d56dc3432f95a979b429f2848c3dbe880", size = 13466174, upload-time = "2025-07-26T12:03:12.549Z" }wheels = [@@ -294,7 +294,7 @@ name = "cv2-enumerate-cameras"version = "1.3.3"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "pyobjc-framework-avfoundation", marker = "sys_platform == 'darwin'" },+ { name = "pyobjc-framework-avfoundation", marker = "sys_platform != 'linux' and sys_platform != 'win32'" },]sdist = { url = "https://files.pythonhosted.org/packages/88/40/6208e5ef9a0e46e9acc233c00a1b30728ca3b03b429e751c59e4d9cf5c8b/cv2_enumerate_cameras-1.3.3.tar.gz", hash = "sha256:cc09429e3fd4a2ea3449bbc0ee12420666aee6705d80a36f2235503d90fff3a2", size = 12901, upload-time = "2026-01-16T02:39:47.614Z" }wheels = [@@ -316,11 +316,11 @@ name = "fastapi"version = "0.139.2"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "annotated-doc", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pydantic", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "starlette", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "typing-extensions", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "typing-inspection", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "annotated-doc" },+ { name = "pydantic" },+ { name = "starlette" },+ { name = "typing-extensions" },+ { name = "typing-inspection" },]sdist = { url = "https://files.pythonhosted.org/packages/cd/95/d3f0ae10836324a2eab98a52b61210ac609f08200bf4bb0dc8132d32f78a/fastapi-0.139.2.tar.gz", hash = "sha256:333145a6891e9b5b3cfceb69baf817e8240cde4d4588ae5a10bf56ffacb6255e", size = 423428, upload-time = "2026-07-16T15:06:17.912Z" }wheels = [@@ -371,61 +371,61 @@ wheels = [[[package]]name = "freemocap"-version = "2.0.0a13"+version = "2.0.0a18"source = { editable = "." }dependencies = [- { name = "beartype", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "freemocap-blender-addon", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "libsass", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "msgspec", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "numba", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "numpydantic", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "opencv-contrib-python", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pydantic", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pyinstaller", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "requests", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "scikit-learn", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "scipy-stubs", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "skellycam", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "skellyforge", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "skellylogs", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "skellypings", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "tomli-w", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "beartype" },+ { name = "freemocap-blender-addon" },+ { name = "libsass" },+ { name = "msgspec" },+ { name = "numba" },+ { name = "numpydantic" },+ { name = "opencv-contrib-python" },+ { name = "pydantic" },+ { name = "pyinstaller" },+ { name = "requests" },+ { name = "scikit-learn" },+ { name = "scipy-stubs" },+ { name = "skellycam" },+ { name = "skellyforge" },+ { name = "skellylogs" },+ { name = "skellypings" },+ { name = "tomli-w" },][package.optional-dependencies]cpu = [- { name = "skellytracker", extra = ["all-cpu"], marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "skellytracker", extra = ["all-cpu"] },]cuda = [- { name = "skellytracker", extra = ["all-cuda"], marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "skellytracker", extra = ["all-cuda"] },][package.dev-dependencies]cpu = [- { name = "skellytracker", extra = ["all-cpu"], marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "skellytracker", extra = ["all-cpu"] },]cuda = [- { name = "skellytracker", extra = ["all-cuda"], marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "skellytracker", extra = ["all-cuda"] },]dev = [- { name = "bumpver", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "httpx", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pip-tools", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "poethepoet", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pyinstaller", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pytest", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pytest-asyncio", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pytest-timeout", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "ruff", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "bumpver" },+ { name = "httpx" },+ { name = "pip-tools" },+ { name = "poethepoet" },+ { name = "pyinstaller" },+ { name = "pytest" },+ { name = "pytest-asyncio" },+ { name = "pytest-timeout" },+ { name = "ruff" },]pyceres = [- { name = "pyceres", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "pyceres" },]tracker-default = [- { name = "skellytracker", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "skellytracker", extra = ["all-cpu"], marker = "sys_platform == 'darwin'" },- { name = "skellytracker", extra = ["all-cuda"], marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32')" },+ { name = "skellytracker" },+ { name = "skellytracker", extra = ["all-cpu"], marker = "sys_platform != 'linux' and sys_platform != 'win32'" },+ { name = "skellytracker", extra = ["all-cuda"], marker = "sys_platform == 'linux' or sys_platform == 'win32'" },][package.metadata]@@ -491,8 +491,8 @@ name = "httpcore"version = "1.0.9"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "certifi", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "h11", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "certifi" },+ { name = "h11" },]sdist = { url = "https://files.pythonhosted.org/packages/06/94/82699a10bca87a5556c9c59b5963f2d039dbd239f25bc2a63907a05a14cb/httpcore-1.0.9.tar.gz", hash = "sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8", size = 85484, upload-time = "2025-04-24T22:06:22.219Z" }wheels = [@@ -504,10 +504,10 @@ name = "httpx"version = "0.28.1"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "anyio", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "certifi", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "httpcore", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "idna", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "anyio" },+ { name = "certifi" },+ { name = "httpcore" },+ { name = "idna" },]sdist = { url = "https://files.pythonhosted.org/packages/b1/df/48c586a5fe32a0f01324ee087459e112ebb7224f646c0b5023f5e79e9956/httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc", size = 141406, upload-time = "2024-12-06T15:37:23.222Z" }wheels = [@@ -641,7 +641,7 @@ name = "macholib"version = "1.16.4"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "altgraph", marker = "sys_platform == 'darwin'" },+ { name = "altgraph" },]sdist = { url = "https://files.pythonhosted.org/packages/10/2f/97589876ea967487978071c9042518d28b958d87b17dceb7cdc1d881f963/macholib-1.16.4.tar.gz", hash = "sha256:f408c93ab2e995cd2c46e34fe328b130404be143469e41bc366c807448979362", size = 59427, upload-time = "2025-11-22T08:28:38.373Z" }wheels = [@@ -653,15 +653,15 @@ name = "matplotlib"version = "3.11.1"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "contourpy", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "cycler", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "fonttools", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "kiwisolver", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "numpy", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "packaging", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pillow", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pyparsing", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "python-dateutil", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "contourpy" },+ { name = "cycler" },+ { name = "fonttools" },+ { name = "kiwisolver" },+ { name = "numpy" },+ { name = "packaging" },+ { name = "pillow" },+ { name = "pyparsing" },+ { name = "python-dateutil" },]sdist = { url = "https://files.pythonhosted.org/packages/49/64/f9a391af28f518b11ad45a8a712353c94a0aefce09d3703200e5c54b610a/matplotlib-3.11.1.tar.gz", hash = "sha256:69647db5746941c793d6e445a4cd349323ffb87d9cc958c2ad84a659b4832d30", size = 32612045, upload-time = "2026-07-18T03:39:46.63Z" }wheels = [@@ -705,12 +705,12 @@ name = "mediapipe"version = "0.10.33"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "absl-py", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "flatbuffers", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "matplotlib", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "numpy", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "opencv-contrib-python", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "sounddevice", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "absl-py" },+ { name = "flatbuffers" },+ { name = "matplotlib" },+ { name = "numpy" },+ { name = "opencv-contrib-python" },+ { name = "sounddevice" },]wheels = [{ url = "https://files.pythonhosted.org/packages/a7/10/593aa6429e6e2dc309b19761804b7992d61a0ef485339435f164b83c2759/mediapipe-0.10.33-py3-none-macosx_11_0_arm64.whl", hash = "sha256:f8dd00affe7d02479cb2e5af8ca5899d2618d6cbc316507a56d41cf62cdbc4d2", size = 29397266, upload-time = "2026-03-18T22:15:58.627Z" },@@ -723,7 +723,7 @@ name = "ml-dtypes"version = "0.5.4"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "numpy", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "numpy" },]sdist = { url = "https://files.pythonhosted.org/packages/0e/4a/c27b42ed9b1c7d13d9ba8b6905dece787d6259152f2309338aed29b2447b/ml_dtypes-0.5.4.tar.gz", hash = "sha256:8ab06a50fb9bf9666dd0fe5dfb4676fa2b0ac0f31ecff72a6c3af8e22c063453", size = 692314, upload-time = "2025-11-17T22:32:31.031Z" }wheels = [@@ -794,8 +794,8 @@ name = "numba"version = "0.66.0"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "llvmlite", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "numpy", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "llvmlite" },+ { name = "numpy" },]sdist = { url = "https://files.pythonhosted.org/packages/ae/a0/570e3dc53e5602b49108f62a13e529f1eec8bfc7ef37d49c825924dcf546/numba-0.66.0.tar.gz", hash = "sha256:b900e63a0e26c05ea9a6d5a3a5a0a177cb64c5011887bf43edb8c3ed2c38d363", size = 2806181, upload-time = "2026-07-01T23:12:46.36Z" }wheels = [@@ -875,7 +875,7 @@ name = "numpy-typing-compat"version = "20251206.2.4"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "numpy", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "numpy" },]sdist = { url = "https://files.pythonhosted.org/packages/42/5f/29fd5f29b0a5d96e2def96ecba3112fc330ecd16e8c97c2b332563c5e201/numpy_typing_compat-20251206.2.4.tar.gz", hash = "sha256:59882d23aaff054a2536da80564012cdce33487657be4d79c5925bb8705fcabc", size = 5011, upload-time = "2025-12-06T20:02:04.942Z" }wheels = [@@ -887,8 +887,8 @@ name = "numpydantic"version = "1.10.0"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "numpy", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pydantic", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "numpy" },+ { name = "pydantic" },]sdist = { url = "https://files.pythonhosted.org/packages/95/5c/0cfed22c6483338c73d2faf182d863c47836e5f8f34e65b70aea345e7b72/numpydantic-1.10.0.tar.gz", hash = "sha256:a17d5ccc3b893c4a2e539c81c2f18960d70884ad7fcaa09c9eb56a95e8daf4a3", size = 98771, upload-time = "2026-06-22T22:04:46.251Z" }wheels = [@@ -900,7 +900,7 @@ name = "nvidia-cublas-cu12"version = "12.9.2.10"source = { registry = "https://pypi.nvidia.com/" }dependencies = [- { name = "nvidia-cuda-nvrtc-cu12", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32')" },+ { name = "nvidia-cuda-nvrtc-cu12" },]wheels = [{ url = "https://pypi.nvidia.com/nvidia-cublas-cu12/nvidia_cublas_cu12-12.9.2.10-py3-none-manylinux_2_27_x86_64.whl", hash = "sha256:e4f53a8ca8c5d6e8c492d0d0a3d565ecb59a751b19cfdaa4f6da0ab2104c1702" },@@ -930,7 +930,7 @@ name = "nvidia-cudnn-cu12"version = "9.25.0.15"source = { registry = "https://pypi.nvidia.com/" }dependencies = [- { name = "nvidia-cublas-cu12", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32')" },+ { name = "nvidia-cublas-cu12" },]wheels = [{ url = "https://pypi.nvidia.com/nvidia-cudnn-cu12/nvidia_cudnn_cu12-9.25.0.15-py3-none-manylinux_2_27_x86_64.whl", hash = "sha256:4ea1ba443fa28ac6cf04b7a44a107dfd54cf355c2324938102ddb21778ab10ce" },@@ -942,7 +942,7 @@ name = "nvidia-cufft-cu12"version = "11.4.1.4"source = { registry = "https://pypi.nvidia.com/" }dependencies = [- { name = "nvidia-nvjitlink-cu12", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32')" },+ { name = "nvidia-nvjitlink-cu12" },]wheels = [{ url = "https://pypi.nvidia.com/nvidia-cufft-cu12/nvidia_cufft_cu12-11.4.1.4-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c67884f2a7d276b4b80eb56a79322a95df592ae5e765cf1243693365ccab4e28" },@@ -963,10 +963,10 @@ name = "onnx"version = "1.22.0"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "ml-dtypes", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "numpy", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "protobuf", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "typing-extensions", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "ml-dtypes" },+ { name = "numpy" },+ { name = "protobuf" },+ { name = "typing-extensions" },]sdist = { url = "https://files.pythonhosted.org/packages/04/19/8ea73a64b368b75fe339771a20a02bc61ea1f551484c9e3d9d0bfbd0450f/onnx-1.22.0.tar.gz", hash = "sha256:ef40c0aaf0b643857ea9306fc7eddce17eaf9fb0407e4801f1fc5758443a38e0", size = 12024721, upload-time = "2026-06-15T12:50:05.354Z" }wheels = [@@ -987,10 +987,10 @@ name = "onnxruntime"version = "1.27.0"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "flatbuffers", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "numpy", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "packaging", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "protobuf", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "flatbuffers" },+ { name = "numpy" },+ { name = "packaging" },+ { name = "protobuf" },]wheels = [{ url = "https://files.pythonhosted.org/packages/d4/e4/5353d7e09ced4a8f473f843223fc75d726b2b5519dcefc12f22a6c92852d/onnxruntime-1.27.0-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:8ba14a38c570087f3cdb8cfba33f7a38a1e826c1e5b29e17c28ceda0cc910016", size = 18416484, upload-time = "2026-06-15T22:43:43.894Z" },@@ -1014,10 +1014,10 @@ name = "onnxruntime-gpu"version = "1.26.0"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "flatbuffers", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32')" },- { name = "numpy", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32')" },- { name = "packaging", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32')" },- { name = "protobuf", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32')" },+ { name = "flatbuffers" },+ { name = "numpy" },+ { name = "packaging" },+ { name = "protobuf" },]wheels = [{ url = "https://files.pythonhosted.org/packages/dc/0f/696b4f94a282952239ffed39db78cb17a00ad993acd929cfac010a09759b/onnxruntime_gpu-1.26.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4fa231294c2643911d2a7d16469c4808b0bdcdc4b5f4063d3a53744ce25b683a", size = 276956564, upload-time = "2026-05-08T19:15:35.133Z" },@@ -1037,7 +1037,7 @@ name = "opencv-contrib-python"version = "4.12.0.88"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "numpy", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "numpy" },]sdist = { url = "https://files.pythonhosted.org/packages/e0/b4/30fb53c33da02626b66dd40ad58dd4aa01eef834e422e098dfc056ed0873/opencv-contrib-python-4.12.0.88.tar.gz", hash = "sha256:0f1e22823aace09067b9a0e8e2b4ba6d7a1ef08807d6cebea315f3133f419a0e", size = 150785997, upload-time = "2025-07-07T09:20:16.755Z" }wheels = [@@ -1052,7 +1052,7 @@ name = "optype"version = "0.17.1"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "typing-extensions", marker = "(python_full_version < '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux') or (python_full_version < '3.13' and platform_machine == 'AMD64' and sys_platform == 'win32') or (python_full_version < '3.13' and sys_platform == 'darwin')" },+ { name = "typing-extensions", marker = "python_full_version < '3.13'" },]sdist = { url = "https://files.pythonhosted.org/packages/9b/86/e6f1f6f3487492dfcf3b7a2d4e2534d27af6ac05b364b276706906c34865/optype-0.17.1.tar.gz", hash = "sha256:07bfa32b795dea28fba8605a6288d36370d072f25183fb9c29b5a90f4b6f5638", size = 53572, upload-time = "2026-05-17T22:13:28.725Z" }wheels = [@@ -1061,8 +1061,8 @@ wheels = [[package.optional-dependencies]numpy = [- { name = "numpy", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "numpy-typing-compat", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "numpy" },+ { name = "numpy-typing-compat" },][[package]]@@ -1079,10 +1079,10 @@ name = "pandas"version = "2.3.3"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "numpy", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "python-dateutil", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pytz", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "tzdata", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "numpy" },+ { name = "python-dateutil" },+ { name = "pytz" },+ { name = "tzdata" },]sdist = { url = "https://files.pythonhosted.org/packages/33/01/d40b85317f86cf08d853a4f495195c73815fdf205eef3993821720274518/pandas-2.3.3.tar.gz", hash = "sha256:e05e1af93b977f7eafa636d043f9f94c7ee3ac81af99c13508215942e64c993b", size = 4495223, upload-time = "2025-09-29T23:34:51.853Z" }wheels = [@@ -1204,12 +1204,12 @@ name = "pip-tools"version = "7.6.0"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "build", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "click", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pip", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pyproject-hooks", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "setuptools", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "wheel", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "build" },+ { name = "click" },+ { name = "pip" },+ { name = "pyproject-hooks" },+ { name = "setuptools" },+ { name = "wheel" },]sdist = { url = "https://files.pythonhosted.org/packages/ab/d6/d51564c5a3d7a91d20020fbc68a473e6f6e6f970337294cdfc764717d51e/pip_tools-7.6.0.tar.gz", hash = "sha256:c1c59f7844df4866fa9542d3f50d1f44be537ac0027cb50b2563d6a992853981", size = 183149, upload-time = "2026-07-18T12:51:46.963Z" }wheels = [@@ -1230,8 +1230,8 @@ name = "poethepoet"version = "0.48.0"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "pastel", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pyyaml", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "pastel" },+ { name = "pyyaml" },]sdist = { url = "https://files.pythonhosted.org/packages/5c/92/93a4af9511b8c7c647874521d9e6c904266be98067c2ee1eb2e74520d208/poethepoet-0.48.0.tar.gz", hash = "sha256:a06f49d244fadfc2e2e7faa78b54e64a9694727e4ce1d50e08f23cea3ded74f1", size = 148679, upload-time = "2026-07-05T21:48:30.106Z" }wheels = [@@ -1243,7 +1243,7 @@ name = "polars"version = "1.43.0"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "polars-runtime-32", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "polars-runtime-32" },]sdist = { url = "https://files.pythonhosted.org/packages/66/5b/5d0f0aa53c6e9a8ecbc99ff502edcf9584e5d08ab34ea407c086999103d5/polars-1.43.0.tar.gz", hash = "sha256:bb2c67553e4968c18dfe268a88ff9a5790d5c2e0b7ea7efe97640b9a90438c88", size = 749537, upload-time = "2026-07-21T04:30:25.966Z" }wheels = [@@ -1334,7 +1334,7 @@ name = "pyceres"version = "2.6"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "numpy", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "numpy" },]wheels = [{ url = "https://files.pythonhosted.org/packages/f9/a3/9519766129c8876f158ec4a8b8d65d1ae9ec03ac97c5cdd621b34d4f0331/pyceres-2.6-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:078ee92e6e9d98a20c030b52396248c41499ed5159342a9163cdfc2ab40e49c0", size = 2414855, upload-time = "2025-11-05T12:35:59.668Z" },@@ -1365,10 +1365,10 @@ name = "pydantic"version = "2.13.4"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "annotated-types", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pydantic-core", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "typing-extensions", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "typing-inspection", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "annotated-types" },+ { name = "pydantic-core" },+ { name = "typing-extensions" },+ { name = "typing-inspection" },]sdist = { url = "https://files.pythonhosted.org/packages/18/a5/b60d21ac674192f8ab0ba4e9fd860690f9b4a6e51ca5df118733b487d8d6/pydantic-2.13.4.tar.gz", hash = "sha256:c40756b57adaa8b1efeeced5c196f3f3b7c435f90e84ea7f443901bec8099ef6", size = 844775, upload-time = "2026-05-06T13:43:05.343Z" }wheels = [@@ -1380,7 +1380,7 @@ name = "pydantic-core"version = "2.46.4"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "typing-extensions", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "typing-extensions" },]sdist = { url = "https://files.pythonhosted.org/packages/9d/56/921726b776ace8d8f5db44c4ef961006580d91dc52b803c489fafd1aa249/pydantic_core-2.46.4.tar.gz", hash = "sha256:62f875393d7f270851f20523dd2e29f082bcc82292d66db2b64ea71f64b6e1c1", size = 471464, upload-time = "2026-05-06T13:37:06.98Z" }wheels = [@@ -1436,13 +1436,13 @@ name = "pyinstaller"version = "6.21.0"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "altgraph", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "macholib", marker = "sys_platform == 'darwin'" },- { name = "packaging", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pefile", marker = "platform_machine == 'AMD64' and sys_platform == 'win32'" },- { name = "pyinstaller-hooks-contrib", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pywin32-ctypes", marker = "platform_machine == 'AMD64' and sys_platform == 'win32'" },- { name = "setuptools", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "altgraph" },+ { name = "macholib", marker = "sys_platform != 'linux' and sys_platform != 'win32'" },+ { name = "packaging" },+ { name = "pefile", marker = "sys_platform == 'win32'" },+ { name = "pyinstaller-hooks-contrib" },+ { name = "pywin32-ctypes", marker = "sys_platform == 'win32'" },+ { name = "setuptools" },]sdist = { url = "https://files.pythonhosted.org/packages/d5/4d/ec706c3fcf39e26888c35b39615ff4d5865d184069666c47492cff1fbe50/pyinstaller-6.21.0.tar.gz", hash = "sha256:bb9fab705983e393a2d1cac77d6972513057ad800215fd861dc15ff5272e98fd", size = 4061519, upload-time = "2026-06-13T14:15:06.25Z" }wheels = [@@ -1457,7 +1457,7 @@ name = "pyinstaller-hooks-contrib"version = "2026.6"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "packaging", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "packaging" },]sdist = { url = "https://files.pythonhosted.org/packages/94/5b/c9fe0db5e83ee1c39b2258fa21d23b15e1a60786b6c5990ee5074ead8bb6/pyinstaller_hooks_contrib-2026.6.tar.gz", hash = "sha256:bef5002c32f4f50bd55b005da12cff64eca8783e7eaf86a06a62410164bab725", size = 173354, upload-time = "2026-06-08T22:37:16.152Z" }wheels = [@@ -1485,11 +1485,11 @@ name = "pyobjc-framework-avfoundation"version = "12.2.1"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "pyobjc-core", marker = "sys_platform == 'darwin'" },- { name = "pyobjc-framework-cocoa", marker = "sys_platform == 'darwin'" },- { name = "pyobjc-framework-coreaudio", marker = "sys_platform == 'darwin'" },- { name = "pyobjc-framework-coremedia", marker = "sys_platform == 'darwin'" },- { name = "pyobjc-framework-quartz", marker = "sys_platform == 'darwin'" },+ { name = "pyobjc-core" },+ { name = "pyobjc-framework-cocoa" },+ { name = "pyobjc-framework-coreaudio" },+ { name = "pyobjc-framework-coremedia" },+ { name = "pyobjc-framework-quartz" },]sdist = { url = "https://files.pythonhosted.org/packages/2e/26/7616f0bc8e4eaaba948cf5d220c8f55e0f54f617a2812392a82f19c30f39/pyobjc_framework_avfoundation-12.2.1.tar.gz", hash = "sha256:2735e4f1c345d2b533541577e292f3ad2f75d19200eff99f1a2db16d78b4f1a3", size = 410329, upload-time = "2026-06-19T16:19:52.413Z" }wheels = [@@ -1508,7 +1508,7 @@ name = "pyobjc-framework-cocoa"version = "12.2.1"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "pyobjc-core", marker = "sys_platform == 'darwin'" },+ { name = "pyobjc-core" },]sdist = { url = "https://files.pythonhosted.org/packages/51/34/fbe38a204643aa4e1b91391cdce07a34da565a69171ebcad08de7438a556/pyobjc_framework_cocoa-12.2.1.tar.gz", hash = "sha256:b94b37fe5730e5ae1fb0052912cd174e6ec329b0bfba4a012ae5db1014b5864b", size = 3125751, upload-time = "2026-06-19T16:20:05.159Z" }wheels = [@@ -1527,8 +1527,8 @@ name = "pyobjc-framework-coreaudio"version = "12.2.1"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "pyobjc-core", marker = "sys_platform == 'darwin'" },- { name = "pyobjc-framework-cocoa", marker = "sys_platform == 'darwin'" },+ { name = "pyobjc-core" },+ { name = "pyobjc-framework-cocoa" },]sdist = { url = "https://files.pythonhosted.org/packages/ad/df/f1d402bb7b437374f942bb19410a955a74291867c77a920d9c13887d9e48/pyobjc_framework_coreaudio-12.2.1.tar.gz", hash = "sha256:7dfbf1851523aed453af43a628e057d8950d6e020574aa497a2e4f559b6383c8", size = 78690, upload-time = "2026-06-19T16:20:10.586Z" }wheels = [@@ -1547,8 +1547,8 @@ name = "pyobjc-framework-coremedia"version = "12.2.1"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "pyobjc-core", marker = "sys_platform == 'darwin'" },- { name = "pyobjc-framework-cocoa", marker = "sys_platform == 'darwin'" },+ { name = "pyobjc-core" },+ { name = "pyobjc-framework-cocoa" },]sdist = { url = "https://files.pythonhosted.org/packages/e3/79/f501d730a9c320e0b2b3916e95f57e66dd6736d210a1aa5b63eb6c43e605/pyobjc_framework_coremedia-12.2.1.tar.gz", hash = "sha256:71b45f7cd52bd997d836c15a0e1016db90815a219dc87fd20435a6f08b87df7b", size = 98252, upload-time = "2026-06-19T16:20:15.75Z" }wheels = [@@ -1567,8 +1567,8 @@ name = "pyobjc-framework-quartz"version = "12.2.1"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "pyobjc-core", marker = "sys_platform == 'darwin'" },- { name = "pyobjc-framework-cocoa", marker = "sys_platform == 'darwin'" },+ { name = "pyobjc-core" },+ { name = "pyobjc-framework-cocoa" },]sdist = { url = "https://files.pythonhosted.org/packages/3b/f6/2a8b84dbf1fe7c04dd96ea73d991678d4e09a909f51971ecc51629bb2ab4/pyobjc_framework_quartz-12.2.1.tar.gz", hash = "sha256:b3b8b6f71e66147f8ff9e6213864cc8527e3a0b1ee90835b93ce221f4802d9b0", size = 3215521, upload-time = "2026-06-19T16:21:30.199Z" }wheels = [@@ -1605,11 +1605,11 @@ name = "pytest"version = "9.1.1"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "colorama", marker = "platform_machine == 'AMD64' and sys_platform == 'win32'" },- { name = "iniconfig", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "packaging", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pluggy", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pygments", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "colorama", marker = "sys_platform == 'win32'" },+ { name = "iniconfig" },+ { name = "packaging" },+ { name = "pluggy" },+ { name = "pygments" },]sdist = { url = "https://files.pythonhosted.org/packages/e4/47/b9efed96c114afcfa3c9d3fe98a76a1d14c74a9e266d397cf6eb64be5e01/pytest-9.1.1.tar.gz", hash = "sha256:1088fbde8f2b49d95a549a195707afa7a76a3ce9bcadc26b6d71f0ffda5fe313", size = 1636369, upload-time = "2026-06-19T10:58:32.857Z" }wheels = [@@ -1621,8 +1621,8 @@ name = "pytest-asyncio"version = "1.4.0"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "pytest", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "typing-extensions", marker = "(python_full_version < '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux') or (python_full_version < '3.13' and platform_machine == 'AMD64' and sys_platform == 'win32') or (python_full_version < '3.13' and sys_platform == 'darwin')" },+ { name = "pytest" },+ { name = "typing-extensions", marker = "python_full_version < '3.13'" },]sdist = { url = "https://files.pythonhosted.org/packages/43/7c/d36d04db312ecf4298932ef77e6e4a9e8ad017906e24e34f0b0c361a2473/pytest_asyncio-1.4.0.tar.gz", hash = "sha256:c6c0d2259945122819f171a32ecea2c349ead889ee28176caaf492143424be42", size = 58514, upload-time = "2026-05-26T09:56:04.083Z" }wheels = [@@ -1634,7 +1634,7 @@ name = "pytest-timeout"version = "2.4.0"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "pytest", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "pytest" },]sdist = { url = "https://files.pythonhosted.org/packages/ac/82/4c9ecabab13363e72d880f2fb504c5f750433b2b6f16e99f4ec21ada284c/pytest_timeout-2.4.0.tar.gz", hash = "sha256:7e68e90b01f9eff71332b25001f85c75495fc4e3a836701876183c4bcfd0540a", size = 17973, upload-time = "2025-05-05T19:44:34.99Z" }wheels = [@@ -1646,7 +1646,7 @@ name = "python-dateutil"version = "2.9.0.post0"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "six", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "six" },]sdist = { url = "https://files.pythonhosted.org/packages/66/c0/0c8b6ad9f17a802ee498c46e004a0eb49bc148f2fd230864601a86dcf6db/python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3", size = 342432, upload-time = "2024-03-01T18:36:20.211Z" }wheels = [@@ -1718,10 +1718,10 @@ name = "requests"version = "2.34.2"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "certifi", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "charset-normalizer", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "idna", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "urllib3", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "certifi" },+ { name = "charset-normalizer" },+ { name = "idna" },+ { name = "urllib3" },]sdist = { url = "https://files.pythonhosted.org/packages/ac/c3/e2a2b89f2d3e2179abd6d00ebd70bff6273f37fb3e0cc209f48b39d00cbf/requests-2.34.2.tar.gz", hash = "sha256:f288924cae4e29463698d6d60bc6a4da69c89185ad1e0bcc4104f584e960b9ed", size = 142856, upload-time = "2026-05-14T19:25:27.735Z" }wheels = [@@ -1746,12 +1746,12 @@ name = "scikit-learn"version = "1.9.0"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "joblib", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "narwhals", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "numpy", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "scipy", version = "1.17.1", source = { registry = "https://pypi.org/simple" }, marker = "(python_full_version < '3.12' and platform_machine == 'x86_64' and sys_platform == 'linux') or (python_full_version < '3.12' and platform_machine == 'AMD64' and sys_platform == 'win32') or (python_full_version < '3.12' and sys_platform == 'darwin')" },- { name = "scipy", version = "1.18.0", source = { registry = "https://pypi.org/simple" }, marker = "(python_full_version >= '3.12' and platform_machine == 'x86_64' and sys_platform == 'linux') or (python_full_version >= '3.12' and platform_machine == 'AMD64' and sys_platform == 'win32') or (python_full_version >= '3.12' and sys_platform == 'darwin')" },- { name = "threadpoolctl", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "joblib" },+ { name = "narwhals" },+ { name = "numpy" },+ { name = "scipy", version = "1.17.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.12'" },+ { name = "scipy", version = "1.18.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.12'" },+ { name = "threadpoolctl" },]sdist = { url = "https://files.pythonhosted.org/packages/fa/6f/37092bdb25f712817231799fc5674d8e704066a8a70c1d2d40517e18b4ab/scikit_learn-1.9.0.tar.gz", hash = "sha256:8833266989d3a5110178a9fae30783675460724d0e1efb13b14901d2c660c557", size = 7750767, upload-time = "2026-06-02T11:54:32.706Z" }wheels = [@@ -1787,7 +1787,7 @@ resolution-markers = ["python_full_version < '3.12' and platform_machine == 'AMD64' and sys_platform == 'win32'",]dependencies = [- { name = "numpy", marker = "(python_full_version < '3.12' and platform_machine == 'x86_64' and sys_platform == 'linux') or (python_full_version < '3.12' and platform_machine == 'AMD64' and sys_platform == 'win32') or (python_full_version < '3.12' and sys_platform == 'darwin')" },+ { name = "numpy" },]sdist = { url = "https://files.pythonhosted.org/packages/7a/97/5a3609c4f8d58b039179648e62dd220f89864f56f7357f5d4f45c29eb2cc/scipy-1.17.1.tar.gz", hash = "sha256:95d8e012d8cb8816c226aef832200b1d45109ed4464303e997c5b13122b297c0", size = 30573822, upload-time = "2026-02-23T00:26:24.851Z" }wheels = [@@ -1845,7 +1845,7 @@ resolution-markers = ["python_full_version >= '3.12' and platform_machine == 'AMD64' and sys_platform == 'win32'",]dependencies = [- { name = "numpy", marker = "(python_full_version >= '3.12' and platform_machine == 'x86_64' and sys_platform == 'linux') or (python_full_version >= '3.12' and platform_machine == 'AMD64' and sys_platform == 'win32') or (python_full_version >= '3.12' and sys_platform == 'darwin')" },+ { name = "numpy" },]sdist = { url = "https://files.pythonhosted.org/packages/a7/25/c2700dfaf6442b4effaa91af24ebce5dc9d31bb4a69706313aae70d72cd0/scipy-1.18.0.tar.gz", hash = "sha256:67b2ad2ad54c72ca6d04975a9b2df8c3638c34ddd5b28738e94fc2b57929d378", size = 30774447, upload-time = "2026-06-19T15:01:43.456Z" }wheels = [@@ -1884,7 +1884,7 @@ name = "scipy-stubs"version = "1.17.1.5"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "optype", extra = ["numpy"], marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "optype", extra = ["numpy"] },]sdist = { url = "https://files.pythonhosted.org/packages/02/30/7a2e621918d1317ab972f797161131f2635648ad5d92baf0695dd009e4f9/scipy_stubs-1.17.1.5.tar.gz", hash = "sha256:284b1dd1dd46107a614971d170030d310cd88b2ac6b483f85285ee0ff87720bd", size = 399933, upload-time = "2026-05-25T21:34:33.6Z" }wheels = [@@ -1932,29 +1932,29 @@ name = "skellycam"version = "2.0.0a6"source = { git = "https://github.com/freemocap/skellycam?branch=main#777b058ceafb578c55092179506cd8a925a38b50" }dependencies = [- { name = "av", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "beartype", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "cv2-enumerate-cameras", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "fastapi", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "httpx", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "msgspec", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "numpy", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "numpydantic", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "opencv-contrib-python", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pillow", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "polars", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "psutil", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pydantic", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "scipy", version = "1.17.1", source = { registry = "https://pypi.org/simple" }, marker = "(python_full_version < '3.12' and platform_machine == 'x86_64' and sys_platform == 'linux') or (python_full_version < '3.12' and platform_machine == 'AMD64' and sys_platform == 'win32') or (python_full_version < '3.12' and sys_platform == 'darwin')" },- { name = "scipy", version = "1.18.0", source = { registry = "https://pypi.org/simple" }, marker = "(python_full_version >= '3.12' and platform_machine == 'x86_64' and sys_platform == 'linux') or (python_full_version >= '3.12' and platform_machine == 'AMD64' and sys_platform == 'win32') or (python_full_version >= '3.12' and sys_platform == 'darwin')" },- { name = "setproctitle", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "skellylogs", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "skellypings", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "sounddevice", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "tabulate", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "tzlocal", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "uvicorn", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "websockets", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "av" },+ { name = "beartype" },+ { name = "cv2-enumerate-cameras" },+ { name = "fastapi" },+ { name = "httpx" },+ { name = "msgspec" },+ { name = "numpy" },+ { name = "numpydantic" },+ { name = "opencv-contrib-python" },+ { name = "pillow" },+ { name = "polars" },+ { name = "psutil" },+ { name = "pydantic" },+ { name = "scipy", version = "1.17.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.12'" },+ { name = "scipy", version = "1.18.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.12'" },+ { name = "setproctitle" },+ { name = "skellylogs" },+ { name = "skellypings" },+ { name = "sounddevice" },+ { name = "tabulate" },+ { name = "tzlocal" },+ { name = "uvicorn" },+ { name = "websockets" },][[package]]@@ -1962,13 +1962,13 @@ name = "skellyforge"version = "2024.12.1009"source = { git = "https://github.com/freemocap/skellyforge?branch=main#7d39a24aa04a7a40c591ed7cf79a7e73259c51cf" }dependencies = [- { name = "numpy", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pandas", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pyarrow", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pyyaml", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "scipy", version = "1.17.1", source = { registry = "https://pypi.org/simple" }, marker = "(python_full_version < '3.12' and platform_machine == 'x86_64' and sys_platform == 'linux') or (python_full_version < '3.12' and platform_machine == 'AMD64' and sys_platform == 'win32') or (python_full_version < '3.12' and sys_platform == 'darwin')" },- { name = "scipy", version = "1.18.0", source = { registry = "https://pypi.org/simple" }, marker = "(python_full_version >= '3.12' and platform_machine == 'x86_64' and sys_platform == 'linux') or (python_full_version >= '3.12' and platform_machine == 'AMD64' and sys_platform == 'win32') or (python_full_version >= '3.12' and sys_platform == 'darwin')" },- { name = "toml", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "numpy" },+ { name = "pandas" },+ { name = "pyarrow" },+ { name = "pyyaml" },+ { name = "scipy", version = "1.17.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.12'" },+ { name = "scipy", version = "1.18.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.12'" },+ { name = "toml" },][[package]]@@ -1981,8 +1981,8 @@ name = "skellypings"version = "0.1.0"source = { git = "https://github.com/freemocap/skellypings#94b9e4b58322fdf105d48583fb970cade8977de7" }dependencies = [- { name = "python-dotenv", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "requests", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "python-dotenv" },+ { name = "requests" },][[package]]@@ -1990,33 +1990,33 @@ name = "skellytracker"version = "2024.9.1019"source = { git = "https://github.com/freemocap/skellytracker?branch=main#7a8f80ce3d59ceccd01a215add72c2e6e26e767b" }dependencies = [- { name = "beartype", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "numpy", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "numpydantic", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "opencv-contrib-python", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "polars", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pydantic", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "pyyaml", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "requests", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "scipy", version = "1.17.1", source = { registry = "https://pypi.org/simple" }, marker = "(python_full_version < '3.12' and platform_machine == 'x86_64' and sys_platform == 'linux') or (python_full_version < '3.12' and platform_machine == 'AMD64' and sys_platform == 'win32') or (python_full_version < '3.12' and sys_platform == 'darwin')" },- { name = "scipy", version = "1.18.0", source = { registry = "https://pypi.org/simple" }, marker = "(python_full_version >= '3.12' and platform_machine == 'x86_64' and sys_platform == 'linux') or (python_full_version >= '3.12' and platform_machine == 'AMD64' and sys_platform == 'win32') or (python_full_version >= '3.12' and sys_platform == 'darwin')" },- { name = "tqdm", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "beartype" },+ { name = "numpy" },+ { name = "numpydantic" },+ { name = "opencv-contrib-python" },+ { name = "polars" },+ { name = "pydantic" },+ { name = "pyyaml" },+ { name = "requests" },+ { name = "scipy", version = "1.17.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.12'" },+ { name = "scipy", version = "1.18.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.12'" },+ { name = "tqdm" },][package.optional-dependencies]all-cpu = [- { name = "mediapipe", marker = "(platform_machine != 'x86_64' and sys_platform == 'darwin') or (platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32')" },- { name = "onnx", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "onnxruntime", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "mediapipe", marker = "platform_machine != 'x86_64' or sys_platform == 'linux' or sys_platform == 'win32'" },+ { name = "onnx" },+ { name = "onnxruntime" },]all-cuda = [- { name = "mediapipe", marker = "(platform_machine != 'x86_64' and sys_platform == 'darwin') or (platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32')" },- { name = "nvidia-cublas-cu12", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32')" },- { name = "nvidia-cuda-runtime-cu12", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32')" },- { name = "nvidia-cudnn-cu12", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32')" },- { name = "nvidia-cufft-cu12", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32')" },- { name = "onnx", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "onnxruntime-gpu", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32')" },+ { name = "mediapipe", marker = "platform_machine != 'x86_64' or sys_platform == 'linux' or sys_platform == 'win32'" },+ { name = "nvidia-cublas-cu12", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },+ { name = "nvidia-cuda-runtime-cu12", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },+ { name = "nvidia-cudnn-cu12", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },+ { name = "nvidia-cufft-cu12", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },+ { name = "onnx" },+ { name = "onnxruntime-gpu", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },][[package]]@@ -2024,7 +2024,7 @@ name = "sounddevice"version = "0.5.5"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "cffi", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "cffi" },]sdist = { url = "https://files.pythonhosted.org/packages/2a/f9/2592608737553638fca98e21e54bfec40bf577bb98a61b2770c912aab25e/sounddevice-0.5.5.tar.gz", hash = "sha256:22487b65198cb5bf2208755105b524f78ad173e5ab6b445bdab1c989f6698df3", size = 143191, upload-time = "2026-01-23T18:36:43.529Z" }wheels = [@@ -2038,8 +2038,8 @@ name = "starlette"version = "1.3.1"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "anyio", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "typing-extensions", marker = "(python_full_version < '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux') or (python_full_version < '3.13' and platform_machine == 'AMD64' and sys_platform == 'win32') or (python_full_version < '3.13' and sys_platform == 'darwin')" },+ { name = "anyio" },+ { name = "typing-extensions", marker = "python_full_version < '3.13'" },]sdist = { url = "https://files.pythonhosted.org/packages/eb/e3/7c1dc7381d9f8ab7d854328ebfa884e62cb3f3d8549ddfd37c7814f42afa/starlette-1.3.1.tar.gz", hash = "sha256:05d0213193f2fbaae60e2ecb593b4add4262ad4e46536b54abe36f11a71724e0", size = 2703240, upload-time = "2026-06-12T09:23:11.602Z" }wheels = [@@ -2087,7 +2087,7 @@ name = "tqdm"version = "4.69.0"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "colorama", marker = "platform_machine == 'AMD64' and sys_platform == 'win32'" },+ { name = "colorama", marker = "sys_platform == 'win32'" },]sdist = { url = "https://files.pythonhosted.org/packages/8c/69/40407dfc835517f058b603dbf37a6df094d8582b015a51eddc988febbcb7/tqdm-4.69.0.tar.gz", hash = "sha256:700c5e85dcd5f009dd6222588a29180a193a748247a5d855b4d67db93d79a53b", size = 792569, upload-time = "2026-07-17T18:09:06.2Z" }wheels = [@@ -2108,7 +2108,7 @@ name = "typing-inspection"version = "0.4.2"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "typing-extensions", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "typing-extensions" },]sdist = { url = "https://files.pythonhosted.org/packages/55/e3/70399cb7dd41c10ac53367ae42139cf4b1ca5f36bb3dc6c9d33acdb43655/typing_inspection-0.4.2.tar.gz", hash = "sha256:ba561c48a67c5958007083d386c3295464928b01faa735ab8547c5692e87f464", size = 75949, upload-time = "2025-10-01T02:14:41.687Z" }wheels = [@@ -2129,7 +2129,7 @@ name = "tzlocal"version = "5.4.4"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "tzdata", marker = "platform_machine == 'AMD64' and sys_platform == 'win32'" },+ { name = "tzdata", marker = "sys_platform == 'win32'" },]sdist = { url = "https://files.pythonhosted.org/packages/81/5b/879b2f932adfa7a053c360d50bc896c977fa6426109185f7c12ebdd0cb9d/tzlocal-5.4.4.tar.gz", hash = "sha256:8dbb8660838688a7b6ba4fed31d18dedf842afb4d47ca050d6d891c2c15f3be4", size = 31170, upload-time = "2026-06-29T08:03:40.026Z" }wheels = [@@ -2150,8 +2150,8 @@ name = "uvicorn"version = "0.51.0"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "click", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },- { name = "h11", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "click" },+ { name = "h11" },]sdist = { url = "https://files.pythonhosted.org/packages/a2/65/b7c6c443ccc58678c91e1e973bbe2a878591538655d6e1d47f24ba1c51f3/uvicorn-0.51.0.tar.gz", hash = "sha256:f6f4b69b657c312f516dd2d268ab9ae6f254b11e4bac504f37b2ab58b24dd0b0", size = 94412, upload-time = "2026-07-08T10:59:05.962Z" }wheels = [@@ -2206,7 +2206,7 @@ name = "wheel"version = "0.47.0"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "packaging", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine == 'AMD64' and sys_platform == 'win32') or sys_platform == 'darwin'" },+ { name = "packaging" },]sdist = { url = "https://files.pythonhosted.org/packages/39/62/75f18a0f03b4219c456652c7780e4d749b929eb605c098ce3a5b6b6bc081/wheel-0.47.0.tar.gz", hash = "sha256:cc72bd1009ba0cf63922e28f94d9d83b920aa2bb28f798a31d0691b02fa3c9b3", size = 63854, upload-time = "2026-04-22T15:51:27.727Z" }wheels = [