Skip to content

Conversation

@Tejasree731
Copy link

@Tejasree731 Tejasree731 commented Jul 29, 2025

📥 Pull Request

Description

"Snake Game Gesture Controller" is an innovative twist to the classic snake game where you don't need a keyboard to control the snake, just your hand gestures. Using OpenCV, MediaPipe, and PyAutoGUI, this game tracks your hand through the webcam and converts gestures into directional inputs for the snake game.
It's especially fun and useful for touchless interaction and helps demonstrate how computer vision and hand tracking can be used to build creative and engaging games.

Fixes #38

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Demo Video(Mandatory):

video link - https://drive.google.com/file/d/1oT13xzvHn6OmPKJ_zqpQm24C1gK5oUuC/view?usp=sharing

@vercel
Copy link

vercel bot commented Jul 29, 2025

Someone is attempting to deploy a commit to the pavitraag's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Tejasree731
Copy link
Author

Hi! The Vercel checks are stuck on “Authorization required to deploy.”
Could a maintainer please authorize the preview deployment (or mark the Vercel checks as not required)?
Thanks! I’ve included a demo video in the PR as well.

@pavitraag pavitraag added Level 2 Intermediate level GSSoC 25 GSSoC 25 labels Jul 29, 2025
@pavitraag
Copy link
Owner

@Tejasree731 ur pr is good but link it to the website so that the user can directly use ur project

@pavitraag
Copy link
Owner

@Tejasree731 Add it in games section

@Tejasree731
Copy link
Author

Tejasree731 commented Jul 30, 2025

@pavitraag Sure. I would do it today. But the problem is, a python file cannot be opened in browser, I should convert it to js. And OpenCV will not be used, Mediapipe browser will be used.What do you say? Is that ok that the demo video is fine or should i just convert my code to js to get merged?

@pavitraag
Copy link
Owner

try to convert it into js @Tejasree731

@pavitraag
Copy link
Owner

if still u didnt get then add the demo video and link it in the component @Tejasree731

@Tejasree731
Copy link
Author

Sure @pavitraag! I’ll try converting the code to JavaScript using MediaPipe browser version and link it in the Games section.
If I run into issues with the JS conversion, I’ll upload a demo video and add the link inside the component as suggested.
Thanks for the feedback!

@Tejasree731
Copy link
Author

Hi @pavitraag!
I’ve added the demo video for Snake_main.py inside the component, as per your suggestion. It includes usage instructions and gesture mappings.Please let me know if any further changes are needed. Thank you!

@pavitraag
Copy link
Owner

@Tejasree731 solve the conflicts

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

Labels

GSSoC 25 GSSoC 25 Level 2 Intermediate level

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature add] Control Snake Game with Hand Gestures using OpenCV + MediaPipe

2 participants