A snake game that utilize OpenCV and CVzone Mediapipe module to track hand movement as snake.
Here're some of the project's best features:
- Using openCV and Mediapipe creating a snake game that is able to track user index finger to behave like a snake.
- Keeping basic rules like a normal snake game
- Adding basic scoring system for fun
1. Install virtualenv in command prompt for creating a virtual environment:
pip install virtualenv
2. Clone this repository:
git clone https://github.com/Travis-Houston/OpenCV-Snake-Game.git
3. Navigate to the game directory using the cd command:
cd path/to/snake-game/directory
4. Once you're in the directory run the following command to create a virtual environment:
virtualenv myenv
5. Install all required packages using requirements.txt:
pip install -r requirements.txt
6. Run the game and play!
Python3 main.py
Technologies used in the project:
- CVZone
- OpenCV
- MediaPipe
- Python