Create a custom Framework for iOS app based on mediapipe
- Get the mediapipe project
git clone https://github.com/google/mediapipe.git
- Create System Link between current project and mediapipe
ln -s /Users/philippschwarz/Documents/PoseDetectionApp/handtracking_app/handmodelframework/ /Users/philippschwarz/Documents/PoseDetectionApp/mediapipe/mediapipe/examples/ios
- Run bazel command:
➜ mediapipe git:(master) ✗ bazel build -c opt --config=ios_arm64 mediapipe/examples/ios/posetrackingframework:PoseTracker
- Copy Hand Tracking Framework
unzip /Users/philippschwarz/Documents/PoseDetectionApp/mediapipe/bazel-out/ios_arm64-opt/bin/mediapipe/examples/ios/handmodelframework/HandTracker.zip
cp -rf
/Users/philippschwarz/Documents/PoseDetectionApp/mediapipe/bazel-out/ios_arm64-opt/bin/mediapipe/examples/ios/handmodelframework/HandTracker.framework
/Users/philippschwarz/Documents/PoseDetectionApp/handtracking_app/
-
Connect IPhone to computer
-
Select own iPhone and click build & run
MediaPipe offers cross-platform, customizable ML solutions for live and streaming media.
- End-to-End acceleration: Built-in fast ML inference and processing accelerated even on common hardware
- Build once, deploy anywhere: Unified solution works across Android, iOS, desktop/cloud, web and IoT
- Ready-to-use solutions: Cutting-edge ML solutions demonstrating full power of the framework
- Free and open source: Framework and solutions both under Apache 2.0, fully extensible and customizable
DEBUG ISSUES:
-
Provisioning profile expired XCode -> Preferences -> Accounts -> Manage Certificates -> Create a Certificate
-
Problem with Signing Bundle Identifier In Project Settings select: Automatically manage signing
-
When bazel BUILD does not work, hard code Bundle ID BUNDLE_ID_PREFIX = "706dda39-c9bb-4314-830d-327203248742.mediapipe.examples"
handtracking_app is available under the MIT license. See the LICENSE file for more info.