Home

Awesome

PoseEstimation-MLKit

platform-ios swift-version lisence

This project is Pose Estimation on iOS with ML Kit.<br>If you are interested in iOS + Machine Learning, visit here you can see various DEMOs.<br>

Jointed KeypointsConcatenated heatmap
PoseEstimation-MLKit-hourglass.gif(preparing...)

How it works

how_it_works

Video source: https://www.youtube.com/watch?v=EM16LBKBEgI

Requirements

Download model

Get PoseEstimationForMobile's model

Pose Estimation model for TensorFlow Lite(model.tflite)<br> ☞ Download TensorFlow Lite model model_cpm.tflite or hourglass.tflite.

input_name_shape_dict = {"image:0":[1,224,224,3]} image_input_names=["image:0"] <br>output_feature_names = ['Convolutional_Pose_Machine/stage_5_out:0']

-in https://github.com/edvardHua/PoseEstimationForMobile

Matadata

cpmhourglass
Input shape[1, 192, 192, 3][1, 192, 192, 3]
Output shape[1, 96, 96, 14][1, 48, 48, 14]
Input node nameimageimage
Output node nameConvolutional_Pose_Machine/stage_5_outhourglass_out_3

Inference Time

cpmhourglass
iPhone XS(TODO)(TODO)
iPhone XS Max(TODO)(TODO)
iPhone XR(TODO)(TODO)
iPhone X57 ms33 ms
iPhone 8+(TODO)(TODO)
iPhone 8(TODO)(TODO)
iPhone 7(TODO)(TODO)
iPhone 6(TODO)(TODO)

Get your own model

Or you can use your own PoseEstimation model

Build & Run

1. Prerequisites

1.1 Import pose estimation model

1.2 Add permission in info.plist for device's camera access

prerequest_001_plist

2. Dependencies

3. Code

(Preparing...)