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

Gesture based game controller #84

Merged
merged 4 commits into from
Oct 24, 2024

Conversation

nepal143
Copy link
Contributor

#53

Developer Checklist

  • Adhered to the guidelines outlined in the README & Contributing file.
  • Maintained the correct directory structure (e.g., gesture-control/...yourfiles).
  • Included a README file for enhanced project clarity.
  • Starred ⭐ the repository (optional).

Summary

This project is a real-time hand gesture recognition system that uses computer vision and machine learning to map hand gestures to game controls. It utilizes MediaPipe for hand landmark detection and OpenCV for video capture and processing. The hand gestures control actions like moving forward, left, right, jumping, and moving backward, making it useful for interactive gaming or applications that respond to user gestures.

Screenshot

image
image
image
image
image

Live Project Link

No live project link yet. To run the project locally, follow the setup instructions in the README.

Copy link
Contributor

👋 @nepal143 👋

We're delighted to have your pull request! Please take a moment to check our contributing guidelines and ensure you've filled out the PR template for a smooth process. We will review it soon.

Copy link
Owner

@king04aman king04aman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contributions. Your implementation demonstrates strong coding standards. However, I have a few suggestions for improvement:

  • Implement adaptive thresholds for x_diff and y_diff to accommodate different hand sizes and distances from the camera.
  • Use a fixed-size array or other data structures to store landmarks instead of a list for better memory management.
  • Add error handling for video capture failures and when processing hand landmarks to avoid crashes.
  • Implement visual or auditory feedback to confirm gesture recognition (e.g., flashing text or sounds).
  • Display instructions on the video feed to guide users on how to perform gestures effectively.

@king04aman king04aman merged commit 2d8f21e into king04aman:main Oct 24, 2024
1 check passed
Copy link
Contributor

👋 @king04aman 👋

🎉 You've just merged your pull request! We're excited to have you in our community. Keep up the fantastic contributions to the project!

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

Successfully merging this pull request may close these issues.

2 participants