Closed IBSApple closed 2 years ago
Required like this, is it possible?
Hi @IBSApple! Currently we don't have these features in TF-lite itself. Feel free to visit these solutions from mediapipe.
Facemesh- for Face detection Pose detection - for detection of other body parts.
Won't be this issue again a duplicate of previous feature requests. #56265 , #56294.
Thank you!
Ok thanks
Is it possible to add custom keyPoints in TF pose estimation?
@IBSApple ! You can upload your own dataset and train it to get custom keypoints. Also attached a link to use mediapipe's facemesh detection directly in Colab for reference. Thank you!
This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.
Closing as stale. Please reopen if you'd like to work on this further.
Click to expand!
### Issue Type Feature Request ### Source source ### Tensorflow Version pod 'TensorFlowLiteSwift', '~> 0.0.1-nightly', :subspecs => ['CoreML', 'Metal'] ### Custom Code Yes ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell How to display degree of angle on every keyPoint. ``` ### Standalone code to reproduce the issue ```shell Below code for to create degree of angle I used func angle( firstLandmark: CGPoint, midLandmark: CGPoint, lastLandmark: CGPoint ) -> CGFloat { let radians: CGFloat = atan2(lastLandmark.y - midLandmark.y, lastLandmark.x - midLandmark.x) - atan2(firstLandmark.y - midLandmark.y, firstLandmark.x - midLandmark.x) var degrees = radians * 180.0 / .pi //var degrees = radians * .pi / 180 /// .pi degrees = abs(degrees) // Angle should never be negative if degrees > 180.0 { degrees = 360.0 - degrees // Always get the acute representation of the angle } let roundedValue1 = round(degrees) return roundedValue1 } ``` ### Relevant log output _No response_