Skip to content

This Python script utilizes OpenCV and MediaPipe to create a hand gesture recognition game. The game detects hand gestures captured through a webcam feed and prompts the user to mimic a randomized sequence of hand signs. It evaluates the user's performance based on the accuracy and speed of their gesture reproductions.

Notifications You must be signed in to change notification settings

theiturhs/Hand-Gesture-Recognition-Game-with-Emoji-Integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hand-Gesture-Recognition-Game-with-Emoji-Integration

This Python script utilizes OpenCV and MediaPipe to create a hand gesture recognition game. The game detects hand gestures captured through a webcam feed and prompts the user to mimic a randomized sequence of hand signs. It evaluates the user's performance based on the accuracy and speed of their gesture reproductions.

Key Features

  • Gesture Detection: Utilizes the MediaPipe library to accurately detect and track hand landmarks, enabling precise recognition of various gestures.
  • Diverse Gestures: Recognizes a wide range of hand gestures including thumbs up, victory sign, pointing gestures, and more, adding variety and challenge to the gameplay.
  • Real-time Feedback: Provides instant feedback on the user's performance, displaying the current score, elapsed time, and game status throughout the session.
  • Dynamic Sequencing: Generates randomized sequences of gestures to keep the game engaging and unpredictable, encouraging repeated play and skill improvement.
  • Interactive Interface: Integrates emoji symbols for a visually appealing interface, enhancing user experience and accessibility.

Demo

Watch the demonstration of the Hand Gesture Recognition Game in the video. See how to engage with the game by mimicking hand gestures in real-time.

Rec.1.mp4

Inspiration

In the midst of the widespread usage of social media during 2020, a new trend was emerged: the Gesture Challenge. Originally introduced in the early days of 2020, the Gesture Challenge gained popularity on platforms like TikTok and Instagram. Participants were tasked with replicating a sequence of hand emojis that appeared on their screens, adding their own flair and creativity to the performance. The essence of the Gesture Challenge lies in its simplicity and entertainment value. Challengers must swiftly imitate the hand gestures presented to them, injecting excitement and amusement into the experience.

How to play?

  • Launch the Game: Run the script to initiate the game session.
  • Follow Instructions: Mimic the displayed hand gestures as accurately and quickly as possible.
  • Score Points: Earn points for each successfully replicated gesture within the allotted time.
  • Complete the Sequence: Aim to complete the entire sequence of gestures to achieve the highest score.
  • Game Over: Receive final feedback on your performance and compare your results with previous attempts.

Get Started

Clone this repository and explore the code to understand the implementation details. Feel free to modify, enhance, or extend the functionality according to your preferences and requirements. Alternatively, download the files and follow these instructions:

  • Download Files:

    • Click on the "Code" button and select "Download ZIP" to download the entire repository as a ZIP file.
    • Extract the contents of the ZIP file to a convenient location on your computer.
  • Open Command Prompt:

    • Press Win + R to open the Run dialog box.
    • Type cmd and press Enter to open the Command Prompt.
  • Change Directory (cd):

    • In the Command Prompt, use the cd command to navigate to the directory where the files were extracted.

      cd path_to_directory
      
    • Replace path_to_directory with the actual path to the directory where you extracted the files. For example:

      cd C:\Users\YourUsername\Downloads\HandGestureGame
      
  • Run Python Script:

    • Once you are in the correct directory containing the HandGesture.py script, run the script by entering the following command:

      python HandGesture.py
      
NOTE: Need to optimize the code

References:

About

This Python script utilizes OpenCV and MediaPipe to create a hand gesture recognition game. The game detects hand gestures captured through a webcam feed and prompts the user to mimic a randomized sequence of hand signs. It evaluates the user's performance based on the accuracy and speed of their gesture reproductions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages