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
5 · Match
Enrol a palm to start matching.
Enrolled people 0 / 10
Enrol several people one after another, and every live capture is searched against all of them (1:N). Templates are kept only in this tab’s memory. They are never uploaded or written to storage, and they are erased when you reload, leave or close the page.
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.
- Find the hand Google’s open MediaPipe hand landmarker locates 21 keypoints in each frame. We use the wrist and four knuckles.
- 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.
- 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.
- 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.
- 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.
- 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.