Back to Projects

Gesture-Controlled Snake Game

Nov 2023 - Dec 2023 Category: Computer Vision

Role

Sole Developer: Implemented and tested all features

Course

CPS3410 – Advanced Data Structures

Objective

This project aims to develop an interactive snake game controlled via hand gestures captured by a webcam. MediaPipe was used for real-time hand landmark detection and OpenCV for video processing. The project focuses on adapting to lighting conditions, ensuring a frame rate above 30 FPS, and reliably tracking the index fingertip to serve as the game control input.

Technologies

Python, OpenCV, MediaPipe, TQDM, Time

Real-time video brightness normalization, Gesture tracking and landmark detection, Interactive Snake Game

My Contributions

  • Built video input & processing module with consistent frame rate (>30 FPS)
  • Used MediaPipe to detect 21 hand landmarks and track the index fingertip
  • Implemented brightness detection and adaptive enhancement under different light conditions
  • Designed the gesture input module for integration with a Snake game interface (to be continued)

Results

  • Stable gesture tracking and fingertip detection achieved
  • Adaptive brightness correction improved usability under varied lighting
  • Real-time interaction verified with smooth response on laptop webcam

Demo Video

View Demo Video

GitHub Repository

GitHub not available