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

Palm detection - better bbox calculation. #27

Merged
merged 1 commit into from
Aug 23, 2024
Merged

Conversation

kkeroo
Copy link
Collaborator

@kkeroo kkeroo commented Aug 23, 2024

This PR improves the calculation of bounding boxes in mediapipe palm detection. Mediapipe's postprocessing results in rotated bounding boxes so a better way to get out bboxes is considering all points and not only hardcoded ones. Hardcoded points resulted in wrong bbox calculation -- xmin > xmax sometimes.

@kkeroo kkeroo self-assigned this Aug 23, 2024
@kkeroo kkeroo requested a review from klemen1999 August 23, 2024 13:13
@kkeroo kkeroo merged commit fe59514 into main Aug 23, 2024
1 check passed
@kkeroo kkeroo deleted the fix/palm-detection branch August 23, 2024 14:10
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

Successfully merging this pull request may close these issues.

2 participants