3FA Third Factor Authentication Inc.

Palm print, live

Hold your open palm up to the camera. A lite, textbook palm-print pipeline will find your palm, cut out a square of skin, read the direction of every crease, and turn it into a 384-byte template. Then it will try to recognise you.

Runs entirely on your device. Camera frames are never uploaded, stored or sent anywhere.

Press Start camera. The ≈8 MB hand-tracking model downloads once from 3fa.ca and then runs locally in WebAssembly.

  • Distance
  • Light
  • Stillness
  • Focus

Camera is off.

Pipeline, live

1 · Region of interest. 128×128 px, rotated using the knuckle and wrist landmarks.
2 · Line texture. Shading removed so only creases and ridges remain.
3 · Gabor response. How strongly each spot matches a line at this angle:
4 · Competitive code. Colour = winning line direction at each of 1,024 cells (3 bits each).

5 · Match

0 · identical0.5 · unrelated
0.38

Enrol a palm to start matching.

    What you just saw

    This is a working, if simplified, version of the pipeline every palm-print system runs. The matcher is the classical Competitive Code (CompCode) published by Kong and Zhang in 2004. It is well understood and widely benchmarked, and simple enough to run on every frame in plain JavaScript.

    1. Find the hand Google’s open MediaPipe hand landmarker locates 21 keypoints in each frame. We use the wrist and four knuckles.
    2. Normalise the palm Those points define a coordinate frame, so the same patch of skin is cut out whatever the angle, rotation or distance. Bad alignment is the single biggest cause of false rejects.
    3. Filter for lines Six Gabor filters, each tuned to a line at a different angle, sweep the patch. Palm creases and wrinkles are dark valleys, so they respond strongly at their own angle.
    4. Keep only the winner At each of 1,024 cells we store just the index of the strongest orientation. That is 3 bits per cell, 384 bytes per template, and no photo.
    5. Compare by angle Two codes are compared cell by cell. Neighbouring angles cost 1, perpendicular ones cost 3, and the scan tries small shifts. Unrelated palms land near 0.5, the same palm much lower.
    6. Decide A threshold turns that distance into yes or no. Move the slider to trade convenience (fewer false rejects) against security (fewer false accepts).

    Try to break it

    The fastest way to understand a biometric is to attack it. Try these:

    • Your other hand. Left and right palms are different patterns, so it should not match.
    • A friend’s palm. Enrol both of you and watch the distances separate.
    • Bad light, or a tilted hand. Watch the quality checks and the distance drift upward.
    • A photo of your own palm on a phone screen. It will often match, because a webcam in visible light only sees the surface of your skin.

    What this demo is not

    This lite demo is not 3FA’s model, and its accuracy has not been measured. A webcam with no infrared illumination, a 2004-era handcrafted feature and a fixed threshold are far from production conditions. Real systems add multi-spectral capture, learned features, presentation-attack detection, per-population calibration, and template protection so that a stored template can’t be reversed or linked. See How matchers work for how modern methods compare.

    Work with 3FA

    Want the production version?

    These demos use open, textbook techniques. 3FA’s production model fuses palm print with NIR vein imaging, adds presentation-attack detection, and stores only protected, revocable templates. We’d be glad to show you.

    More demos