tucan9389 / PoseEstimation-CoreML

The example project of inferencing Pose Estimation using Core ML
https://github.com/motlabs/awesome-ml-demos-with-ios
MIT License
680 stars 136 forks source link

How show in front camera? #22

Closed Tsepu closed 4 years ago

Tsepu commented 4 years ago

I am tried this project. I am using with front camera, but when i move left hand, the right hand of model moves. It is like mirror. How to fix it?

tucan9389 commented 4 years ago

You can check this line. Maybe you should change the isFlipped argument to false.

Before

var predictedPoints = postProcessor.convertToPredictedPoints(from: heatmaps, isFlipped: true)

After

var predictedPoints = postProcessor.convertToPredictedPoints(from: heatmaps, isFlipped: false)