Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i detect hand is up or down.? #3

Open
adarmawan117 opened this issue Mar 3, 2021 · 4 comments
Open

How can i detect hand is up or down.? #3

adarmawan117 opened this issue Mar 3, 2021 · 4 comments

Comments

@adarmawan117
Copy link

I tried to check i (up) and j (down) gestures, but the result always (i).
.
gesture of i
gesture_i
.
Gesture of j
gesture_j
.
.
Please, suggest me

@laisuki1109
Copy link
Owner

hi, thank you for asking, this android is not support to check the direction of hand, because the used model Mediapipe can only detect the gesture in one direction (for example: gesture i).

The methodology of using this model is :
1.) turn the picture to the positive direction (like gesture i) by palm coordinates
2.) and then detect 21 hand joints to guess the gesture.

Therefore, this model will detected that gesture i == gesture j

What you need to do is to record the transformed angle in step i
and add detection after step 2, to recognise same hand pose with different directions.

@adarmawan117
Copy link
Author

What you mean with "record the transformed angle in step i".?

@laisuki1109
Copy link
Owner

What you mean with "record the transformed angle in step i".?

what I mean is to mark the angle transformed in step one.
Because the model will turn all the test bitmap to positive direction with palm coordinates.

you can find the sensor orientation ate line 122 in DetectorActivity.java

You might need to compare the sensor orientation with the camera direction

@laisuki1109 laisuki1109 reopened this Mar 29, 2021
@adarmawan117
Copy link
Author

What you mean with "record the transformed angle in step i".?

what I mean is to mark the angle transformed in step one.
Because the model will turn all the test bitmap to positive direction with palm coordinates.

you can find the sensor orientation ate line 122 in DetectorActivity.java

You might need to compare the sensor orientation with the camera direction

Please, can you give me a example code for comparing the sensor orientation,?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants