Skip to content

A program that allows you to play minecraft by the pose of your head and hand gestures using only webcam

License

Notifications You must be signed in to change notification settings

Sal-Faris/Minecraft_Gesture_Control

Repository files navigation

Minecraft Gesture Control

This project leverages computer vision to allow you to control Minecraft using the pose of your head and hand gestures.

Features

  • Mouse Movement: Look around in real life to control the in-game camera.
  • Left Click: Close your right hand to hold the left click button (for breaking blocks and hitting).
  • Right Click: Touch your right hand's index finger and thumb to right-click (for placing blocks).
  • Move Forward: Open your left hand to press 'W' (to move forward).
  • Inventory: Lift two fingers on your left hand (✌) to press 'E' (to open the inventory).

Installation

  1. Clone the Repository:

    git clone https://github.com/Sal-Faris/Minecraft_Gesture_Control.git
    cd Minecraft_Gesture_Control
  2. Install the Required Packages:

    pip install opencv-python mediapipe pydirectinput

Usage

  1. Run the Main Script:

    python main.py
  2. Start Minecraft and play with Gesture Controls

To-Do

  • Ability to scroll through the hotbar
  • Prevent accidental inventory openings by requiring the two-finger sign for some time
  • Ability to jump
  • Require lifting only the index and middle fingers to open the inventory rather than lifting any two fingers
  • Implement GUI

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

This project uses the following libraries:

Enjoy a new way of playing Minecraft!

About

A program that allows you to play minecraft by the pose of your head and hand gestures using only webcam

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages