Skip to content

Geometric fruit slicing game, featuring motion input powered by webcam-based OpenCV

Notifications You must be signed in to change notification settings

47hao/fruit-slicer-cv

 
 

Repository files navigation

fruit-slicer-cv

Fruit Slicer with OpenCV computer vision control

- Use phone flashlight in place of mouse
- Built as an early prototype of flashlight control for Beat Slicer

How to run:

Clone the repository, and run game.py - that's all! OpenCV Python library is required.

The program is run on cmu_112_graphics:
The slicing relies on the Sutherland-Hodgman polygon clipping algorithm. Information can be found here:

To play:

Fruits fly up from the bottom of the screen. Drag your mouse over them to slice and get points. You can slice the fruit multiple times.

Commands:

Press 't' generate more fruits.

About

Geometric fruit slicing game, featuring motion input powered by webcam-based OpenCV

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%