Skip to content

SliceCam is a fun, camera-controlled game powered by OpenCV and Mediapipe that lets you slash flying fruits with real-time hand tracking.

License

Notifications You must be signed in to change notification settings

sandeepannandi/SliceCam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SliceCam

A hand-tracking version of the classic Fruit Ninja game using OpenCV and MediaPipe.

Requirements

  • Python 3.7+
  • Webcam
  • Required Python packages (install using pip install -r requirements.txt):
    • opencv-python
    • mediapipe
    • numpy
    • pygame

How to Run

  1. Install the required packages:
pip install -r requirements.txt
  1. Run the game:
python fruit_ninja.py

How to Play

  1. Make sure you have good lighting for hand tracking to work properly
  2. Stand in front of your webcam
  3. Use your index finger to slice the fruits
  4. Try to slice as many fruits as possible
  5. If you miss a fruit, the game is over
  6. Press 'R' to restart after game over
  7. Press 'Q' to quit the game

Features

  • Real-time hand tracking using MediaPipe
  • Multiple fruit types with different colors
  • Slicing animation when fruits are cut
  • Score tracking
  • Game over screen with restart option
  • Smooth fruit physics and movement

About

SliceCam is a fun, camera-controlled game powered by OpenCV and Mediapipe that lets you slash flying fruits with real-time hand tracking.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages