Skip to content
Hal51AIPublic

About

Run hand gesture recognition on a webcam

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

33 Commits

Folders and files

Repository files navigation

Gesture Recognition App

This is a JavaScript application that uses a webcam to recognize hand gestures.

assets

Features

  • Real-time gesture recognition: Processes live video from your webcam and displays recognized gestures.
  • Dynamic camera selection: Choose between front and rear cameras when available.
  • Gesture overlay: Visualizes detected hand landmarks and connections directly on the video.
  • Fullscreen mode: Toggle fullscreen display of the output canvas for an immersive experience.
  • Adjustable screen opacity: Change the overlay opacity by dragging the mouse or using touch events.

Prerequisites

Installation

Clone the repository and install dependencies.

$ git clone https://github.com/Hal51AI/GestureJS.git
$ cd GestureJS
$ npm install

Usage

Start the Development Server

To run the application locally, use:

$ npm run dev

This command starts a development server (configured in webpack.config.js) and launches the application in your default browser.

Instructions

Controls

  • Start Camera: Click the "Start" button to activate your webcam.
  • Camera Selection: Choose between the front or back camera using the radio buttons in the UI.
  • Fullscreen Toggle: Click the fullscreen icon to switch the output canvas to fullscreen mode. Click anywhere outside to exit fullscreen.
  • Opacity Control: Adjust the overlay opacity by clicking and dragging horizontally on the screen.

Screen Opacity

There is a screen opacity setting which you can change once the app has loaded the webcam. By default, the screen opacity is set to 90%. To change this, once the camera has loaded, drag the mouse across the screen horizontally to change the amount of opacity of the image.

Troubleshooting

  • Webcam Access Issues: Ensure your browser has permission to access your webcam.
  • Dependency Errors: If npm install fails, verify that your Node.js and npm versions are current.
  • Development Server Errors: Check your integrated terminal output in Visual Studio Code for error messages.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Run hand gesture recognition on a webcam

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages