ThinkSys Mediapipe Plugin
The ThinkSys Mediapipe Plugin brings pose detection to Flutter apps, filling a gap for iOS developers. It offers real-time tracking, easy integration, and customizable options for fitness and healthcare apps. By connecting MediaPipe's capabilities with Flutter's framework, we're enabling developers to build engaging, motion-based iOS apps easily.
Setup
-
First add the dependency in
pubspec.yaml
file & do runflutter pub get
in terminaldependencies: thinksys_mediapipe_plugin: ^0.0.12
-
Add camera usage permission in Info.plist in example/ios
<key>NSCameraUsageDescription</key> <string>This app uses camera to get pose landmarks that appear in the camera feed.</string>
-
Run
cd ios && pod install
-
Run
flutter pub get
Usage
import 'package:thinksys_mediapipe_plugin/pose_detection.dart';
PoseLandmarks(
key: UniqueKey(),
poseLandmarks: (value) {
print("Received Landmarks : $value");
},
)
You can also provide the options to enable/disable the landmarks on different parts of body:
PoseLandmarks(
key: UniqueKey(),
options: PoseLandmarkOptions(
face: true,
leftLeg: false,
rightLeg: false,
leftArm: true,
rightArm: true,
torso: true),
poseLandmarks: (value) {
print("Received Landmarks : $value");
},
)
🔗 Links
License
This project is licensed under a custom MIT License with restrictions - see the LICENSE file for details.