vision_ai_pose 0.1.0
vision_ai_pose: ^0.1.0 copied to clipboard
On-device body pose detection (33-point skeleton) with pure-Dart fitness/posture analytics and skeleton overlays for Flutter, built on the vision_ai engine.
0.1.0 #
Initial release — on-device body pose detection for Flutter, built on vision_ai ^0.4.0.
Detection #
- 33-point body pose — per frame, a full skeleton via the MediaPipe Pose
Landmarker (LIVE_STREAM). Each
PoseResultcarries normalizedlandmarks(image coords +visibility/presence) andworldLandmarks(metres, origin at the hip midpoint). PoseVision.create(...)ergonomic session wrapper (start / stop / results /updatePoseConfig/switchCamera/ dispose);PoseModels.ensureLoaded()copies the bundled model into app storage and returns its path.PoseLandmarkTypeindex constants (nose=0 … rightFootIndex=32) andposeConnections(the canonical MediaPipe bone topology) for drawing skeletons.
Analytics (pure Dart, zero model weight) #
jointAngle(a, b, c, {use3D})andPoseAngles.of(pose)— elbow/knee/hip/shoulder angles (left + right), 2D or 3D;torsoTiltFromVertical(pose)for torso inclination.RepCounter— repetition counting from a joint-angle down→up oscillation with hysteresis (RepStatecount + phase).PostureClassifier—upright/leaning/crouching/lyingDown/unknown.FallDetector— latched fall detection (horizontal torso + rapid hip drop).isPoseReliable/landmarkVisible— gate analytics on landmark visibility.
Overlays (pure Flutter, zero model weight) #
PoseCameraView— cameraTexture+ live skeleton overlay (with anoverlayBuilderescape hatch).PoseSkeletonPainter— bones + landmark dots, mirroring + visibility-aware fading;PoseOverlayStyletunes colors/widths/min-visibility.RepCounterOverlay— binds aRepCounterto a live count/phase badge.
Bring your own model / variant #
PoseVision.create(customModelPath:)swaps in a different Pose Landmarker variant (lite / heavy) or a fully custom.task(skips the bundled-asset copy).
Bundled model #
pose_landmarker_full.task(thefullvariant) — the accuracy/latency middle ground for live fitness/posture. Swap toliteorheavyviacustomModelPath.
Platforms #
- Android and iOS (symmetric with the rest of the
vision_aiecosystem).