Skip to content

A browser-based finger tapping test built with JavaScript and MediaPipe. Measures tap frequency, inter-tap interval, and variability for use in motor and cognitive research.

License

Notifications You must be signed in to change notification settings

kevinsctfries/FingerTapJS

Repository files navigation

JS Finger Tap Test

A browser-based finger tapping test built with JavaScript and MediaPipe. This tool measures tap frequency, inter-tap interval (ITI), and variability between taps, providing quantitative metrics that can be useful for motor and cognitive research.

Features

  • Real-time tracking of index finger and thumb taps using a webcam.
  • Calculates tap count, mean inter-tap interval, and variability.
  • Fully browser-based, no installation required.
  • Lightweight and easy to integrate into studies or experiments.

Usage

  1. Open `index.html` in a modern web browser with camera access.
  2. Allow webcam access when prompted.
  3. Tap your index finger and thumb together in front of the camera.
  4. Real-time metrics will be displayed on the screen.

Requirements

  • Modern web browser (Chrome, Edge, Firefox, or Safari) with WebRTC camera support.
  • Webcam.

Files

  • `index.html` — Main HTML file.
  • `style.css` — Styling for the interface.
  • `script.js` — Core logic for the finger tap test.
  • `fingertap.js` — Finger tap detection and metrics calculation.

License

This project is released under the MIT License.

About

A browser-based finger tapping test built with JavaScript and MediaPipe. Measures tap frequency, inter-tap interval, and variability for use in motor and cognitive research.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published