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

I want to display the other keypoints but Array 'outputJoints' isn't the true coordinate #2

Open
ghost opened this issue Jun 10, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 10, 2020

could you help me?

@laisuki1109
Copy link
Owner

laisuki1109 commented Jun 11, 2020

hi, if you want to print the outputJoints , you might need to build the matrix for transforming the hand landmark joints, you might refer to DetectortActivity

   frameToCropTransform =
        ImageUtils.getTransformationMatrixContain(
            previewWidth, previewHeight,
            cropSize, cropSize,
            sensorOrientation, MAINTAIN_ASPECT);

    cropToFrameTransform = new Matrix();
    frameToCropTransform.invert(cropToFrameTransform);

The logic of hand landmark detection is it cut the hand from the original bitmap and using model to do recognition.

This above matrix is using for the palm detection. You need to create a new matrix for transforming all the output joint to corresponding ratio

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

1 participant