Skip to content

eckertliam/pong-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pong AI: Computer Vision-Controlled Pong Game

License Python

A modern take on the classic Pong game where you control the paddle using your index finger through your webcam. This project demonstrates the integration of computer vision and gaming, utilizing MediaPipe for hand tracking and Pyglet for game rendering.

🎮 Features

  • Real-time hand tracking using MediaPipe
  • Webcam-based paddle control using index finger
  • Classic Pong gameplay mechanics
  • Smooth graphics rendering with Pyglet
  • Computer vision integration with OpenCV

🛠️ Technologies Used

  • Python 3.12
  • OpenCV (Computer Vision)
  • MediaPipe (Hand Tracking)
  • Pyglet (Game Engine)
  • NumPy (Numerical Operations)
  • Poetry (Dependency Management)

📋 Prerequisites

  • Python 3.12 or higher
  • Webcam
  • Poetry (Python package manager)
  • Sufficient lighting for hand tracking

About

Control the pong paddle through your webcam

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages