Skip to content

Implementation of utilizing a pinching gesture, captured via webcam, for device input.

License

Notifications You must be signed in to change notification settings

peterpf/handgesture-input

Repository files navigation

Hand gesture controlled web player

demo

Accompanying blog post available here.

Usage

Clone the repository and execute

pnpm install
pnpm dev

This starts a local server accessible from localhost. Enable your webcam and use the right hand to draw symbols as shown in the GIF above.

Development

Requirements

  • npm and pnpm should be installed.
  • a webcam.

Setup

Install the dependencies by running

pnpm install

Available scripts

pnpm dev

Runs the app in development mode. Open https://localhost:3000 to view it in the browser.

The page will automatically reload if you make changes to the code. You will see the build errors and lint warnings in the console.

pnpm build

Builds the app for production to the dist folder. It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.

Your app is ready to be deployed.

Releases

No releases published

Packages

No packages published

Languages