This is a JavaScript application that uses a webcam to recognize hand gestures.
- 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.
Clone the repository and install dependencies.
$ git clone https://github.com/Hal51AI/GestureJS.git
$ cd GestureJS
$ npm installTo run the application locally, use:
$ npm run devThis command starts a development server (configured in webpack.config.js) and launches the application in your default browser.
- 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.
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.
- 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.
This project is licensed under the MIT License. See the LICENSE file for details.
