# Air Ink — model and runtime attribution

All files below are served with this website. Hand and face tracking run in the visitor's browser; no video, sound or drawing is sent anywhere.

## Runtime

- MediaPipe Tasks Vision 1.1.1 (npm `@mediapipe/tasks-vision@1.1.1`), Google LLC. Apache License 2.0, see `vendor/LICENSE-apache-2.0.txt`. https://github.com/google-ai-edge/mediapipe
  - `vendor/vision_bundle.mjs` — sha256 `51df7ca83781c21338d4d223f79a9a5bfb9cd56b6b931926f270cffd18c5f897` (the trailing source-map comment was removed; code unchanged)
  - `vendor/wasm/vision_wasm_internal.js` — sha256 `6522286aa32dd93eff17c3da002b0649516f87abfec7a80b5bfe5c9625caa5f8`
  - `vendor/wasm/vision_wasm_internal.wasm` — sha256 `0e101a010e262ef8e78f22e3c95b60a9705fd06962753c9acd6356d9fb56b7bd`
  - Only the SIMD build of the engine is included. Every current desktop and phone browser supports WebAssembly SIMD.

## Models (used as published, not retrained)

- Gesture Recognizer, float16 v1, Google LLC, Apache License 2.0. Contains the palm detector, the 21-point hand landmark model and the canned gesture classifier.
  Source: https://storage.googleapis.com/mediapipe-models/gesture_recognizer/gesture_recognizer/float16/1/gesture_recognizer.task
  `models/gesture_recognizer.task` — sha256 `97952348cf6a6a4915c2ea1496b4b37ebabc50cbbf80571435643c455f2b0482`
  Model card: https://ai.google.dev/edge/mediapipe/solutions/vision/gesture_recognizer
- Face Landmarker with blendshapes, float16 v1, Google LLC, Apache License 2.0. Loaded only when the visitor turns on Fog; Air Ink reads the `mouthPucker` and `mouthFunnel` scores and the lip position.
  Source: https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/1/face_landmarker.task
  `models/face_landmarker.task` — sha256 `64184e229b263107bc2b804c6625db1341ff2bb731874b0bcc2fe6544e0bc9ff`
  Model card: https://ai.google.dev/edge/mediapipe/solutions/vision/face_landmarker

## Written for Air Ink

`gestures.mjs` (pinch, L-frame, lighter flick and blow rules, One Euro smoothing, debouncing), `hand.mjs` (the stick hand used in mouse mode and the icons), `air-ink.js`, `air-ink.css` and `index.html` are Dee Bee's own. The One Euro filter follows Casiez, Roussel and Vogel, "1€ Filter", CHI 2012.
