mediapipe
mediapipe copied to clipboard
Android Hands Solution load Video Left/Right Issue
Here is the scene , user need to do like the video shows.
I use MP Android Hands Solution to load the demo video , get:

Actually , It's right hand video , but solution recognise it as left hand ( left green,right red)
Then I start front camera , and do as video shows , it recognised the hand correctly:

I calculate the finger angle of video , compare it to the angle of mine , can't get the idea result each time. (eg: video result: 40 , mine: 40 +- n)
here is my code about angle
NormalizedLandmark a = value.get(0);
NormalizedLandmark b = value.get(1);
NormalizedLandmark c = value.get(2);
double radians = Math.atan2(c.getY() - b.getY(), c.getX() - b.getX()) - Math.atan2(a.getY() - b.getY(), a.getX() - b.getX());
int angle = (int) Math.abs(radians * 180.0 / Math.PI);
if (angle > 180){
angle = 360 - 180;
}
a b c is the landmark point like 8 7 6. it's migrated from python methoned in other solved issue
Is the video left/right incorrect leads to the compare result mismatch?
Hi @lhalcyon , Could you please elaborate this issue.
Hi
Hi @lhalcyon , Could you please elaborate this issue.
Hi . two questions.
- Why Android hands Solution detect the wrong hand after load video ( plz have a look at the pictures above , actually it's the right hand , but detect as left)
- Does it make difference when I use the right hand landmark to calculate angels compare to the result on 1 ( angle calculate code pasted above)
This issue has been automatically marked as stale because it has not had 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.
Closing as stale. Please reopen if you'd like to work on this further.
Closing as stale. Please reopen if you'd like to work on this further.
Hello @lhalcyon, We are upgrading the MediaPipe Legacy Solutions to new MediaPipe solutions However, the libraries, documentation, and source code for all the MediaPipe Legacy Solutions will continue to be available in our GitHub repository and through library distribution services, such as Maven and NPM.
You can continue to use those legacy solutions in your applications if you choose. Though, we would request you to check new MediaPipe solutions which can help you more easily build and customize ML solutions for your applications. These new solutions will provide a superset of capabilities available in the legacy solutions.
This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.
This issue was closed due to lack of activity after being marked stale for past 7 days.