Inspiration

Baseball is a physical game that requires movements. It is ridiculous to play baseball online through mouse clicks. To make the play of online baseball games more natural, I decided to develop a system that can control a baseball game through hand movements. Hand movements can be replaced with using an actual bat in the future.

What it does

Use webcam to do swings.

How it does

I loaded a baseball HTML5 Game into the web site I developed and attempted to control the game with my hand movements from webcam.

Challenges I ran into

Linking the hand events to the game hit events was a big challenge. You can see that hand swings working in the logs at the screenshot. I could not simply link the hand movements to mouse click through Javascript due to security features of the browsers.

I initially wanted to implement the game but the time was very short. I only had a few hours to work on the project.

Share this project:
×

Updates