- An iOS Framework that enables developers to use iris detection & capturing face mesh based on MediaPipe.
- enable to use MediaPipe Iris Detection in Swift App
- Acquire iris tracking from front camera image
- face mesh
- iris landmark
To try the example project, simply clone this repository and open the examples
folder
- Add
MPIrisTracker.framwork
in./output
folder to your App Xcode Project on Xcode. - In Xcode, select File > New > File...
- Create temporary Objective-C File (this file will be deleted after creating bridging header file).
- (Xcode automatically creates
xxx-Bridging-Header.h
) - Append
#import <MPIrisTracker/MPIrisTracker.h>
intoxxx-Bridging-Header.h
- (if needed) Select
Embed & Sign
at MPIrisTracker.framework - (if needed) Select
No
at Enable Bitcode
- Make sure you add the usage description of the
camera
in the app'sInfo.plist
.
<key>NSCameraUsageDescription</key>
<string>MPIrisTracker</string>
- Follow official MediaPipe documents
- Copy files in
./source
folder to MediaPipe installation path (e.g.MEDIAPIPE_PATH
/mediapipe/MPIrisTracker/). cd MEDIAPIPE_PATH
bazel build -c opt --config=ios_arm64 mediapipe/MPIrisTracker:MPIrisTracker
Yuki Yamato [ukitomato]