quickpose / quickpose-ios-sdk

Quickly add MediaPipe Pose Estimation and Detection to your iOS app. Enable powerful features in your app powered by the body or hand.
https://docs.quickpose.ai/docs/MobileSDK
Apache License 2.0
239 stars 11 forks source link

MeasureBasedCounter does not exist #6

Closed hasn-ab closed 1 year ago

hasn-ab commented 1 year ago

Hi @pablonosh, I am getting the following error after integrating the SDK with Cocoapods.

Screenshot 2023-06-10 at 2 19 54 AM

It looks like this was removed, as I could not find it in the QuickPoseCore module.

dvolkhonskiy commented 1 year ago

Hi @hasn-ab!

Now you can use QuickPoseThresholdCounter instead of MeasureBasedCounter. Internally they provide the same functionality, so we removed one of them. Feel free to play with enterThreshold and exitThreshold parameters (0.6 and 0.3 by default) to adjust the sensitivity.

MeasureBasedTimer was replaced by QuickPoseThresholdTimer with the same functionality and slightly different methods.

Let me know if you have any further questions.

dvolkhonskiy commented 1 year ago

Here are a couple of examples of how you can use them:

https://docs.quickpose.ai/docs/MobileSDK/Features/Exercises/Plank#plank-timing Timer https://docs.quickpose.ai/docs/MobileSDK/Features/Exercises/Bicep%20Curls#bicep-curl-counting Counter