Skip to content
pubscout

google_mlkit_pose_detection

1.0.3, released 8 days ago by flutter-ml.dev

Flutter plugin for Google ML Kit Pose Detection on Android and iOS.

$ flutter pub add google_mlkit_pose_detection
Source repository

What it does

A Flutter plugin that uses Google's ML Kit Pose Detection to detect the pose of a subject's body in real time from a continuous video or static image. It acts as a bridge to native platform APIs via platform channels.

AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need real-time body pose detection in a mobile app.
  • You want to leverage Google's on-device ML Kit pose detection capabilities.

Skip it when

  • You need web or desktop platform support.
  • You want a pure Dart implementation without native platform dependencies.

Strengths

  • Uses Google's native ML Kit for performance.
  • Supports both stream and single image detection modes.

Weaknesses

  • Limited to mobile platforms (Android and iOS).
  • Running pose detection inference on iOS simulator requires a physical device due to GPU/Metal requirements.

Setup

Kind
Plugin (native code)
Effort
High
Code generation
No
Direct dependencies
1

Requires minimum iOS deployment target of 15.0, Xcode 15.3.0+, Swift 5.9, adding linker flags (-ObjC, -all_load), downloading and adding ML Kit resource bundles to Xcode Runner target, and setting Android minSdkVersion 21 and compileSdkVersion 36.

final options = PoseDetectorOptions(
  mode: PoseDetectionMode.stream,
  model: PoseDetectionModel.base,
);
final poseDetector = PoseDetector(options: options);
final List<Pose> poses = await poseDetector.processImage(inputImage);
poseDetector.close();

Alternatives

Packages that do the same job and could replace google_mlkit_pose_detection.

  • gemini_live

    A Flutter package for the Gemini Live API, enabling real-time, multimodal conversations with Google's Gemini models.

  • hand_landmarker

    Real-time hand landmark detection on Android using Google MediaPipe and JNI.

Works with

Packages commonly used together with google_mlkit_pose_detection: ones it builds on, ones built on it, and its own family.