Hand gesture calculator that detects finger count (0–5) using your webcam and adds two single-digit numbers.
Built using HTML, CSS, JavaScript, and ml5.js Handpose.
- index.html
- README.md
Run this project using a local server.
- Open VS Code
- Go to Extensions (
Ctrl + Shift + X) - Search for Live Server
- Install Live Server by Ritwick Dey
- Open VS Code
- Click File → Open Folder
- Select the folder containing
index.html
You can start Live Server using any one of the following methods:
Option A
- Right-click on
index.html - Click Open with Live Server
Option B
- Open
index.html - Click Go Live in the bottom-right corner of VS Code
- Your browser will open automatically (
http://127.0.0.1:5500)
- Show your hand clearly to the camera (0–5 fingers)
- Use the keyboard to control the calculator:
| Key | Action |
|---|---|
| Space | Lock first number |
| Enter | Lock second number and calculate sum |
| R | Reset calculator |
Author: Kartik Mathur