EnoxSoftware / OpenCVForUnity

OpenCV for Unity (Untiy Asset Plugin)
https://assetstore.unity.com/packages/tools/integration/opencv-for-unity-21088
550 stars 172 forks source link

HandPoseEstimationExample in 3D, or distance to palm #162

Open thePostFuturist opened 1 year ago

thePostFuturist commented 1 year ago

In the example class, I only see 2D coordinates for landmarks. Is it possible to obtain depth, or at least unit distance to palm?

EnoxSoftware commented 1 year ago

I have just barely ported the opencv model zoo example, so I am not that familiar with hand pose estimation. Here is the original code. https://github.com/opencv/opencv_zoo/tree/master/models/handpose_estimation_mediapipe

It may be possible to roughly estimate the distance to the palm based on average human hand size and camera parameters, but I have not tried.