pulsebycam your pulse, by camera light

How a camera can see your heartbeat

June 12, 2026 · a little note from pulsebycam

Do this once, tonight, and you'll never quite forget it: turn on your phone's flashlight and press the pad of your finger flat over it, in a dark room. Your whole fingertip lights up like a paper lantern — that deep, warm, campfire red. You've seen it before. Every kid who ever held a torch under the blankets has seen it.

Now here's the part almost nobody notices. That glow isn't steady.

It flickers. Barely — far too little for your eye to catch — but it flickers in perfect time with your heart. Every beat sends a small surge of blood into the vessels of your fingertip, and blood is greedy about light. More blood in the finger means more light absorbed, which means the lantern dims for a moment. Then the surge passes, the finger drains a little, and the glow recovers. Dim, bright, dim, bright, seventy-ish times a minute, for your whole life.

the glow, dipping once per heartbeat
a fingertip over the lens becomes a lantern; the lantern flickers in time with the heart

A camera, unlike your eye, is a very patient noticer. Point one at that glowing fingertip — or better, press the fingertip right onto the lens, next to the flash — and every frame records how bright the redness is at that instant. String thirty seconds of frames together and you get a wobbling line: up, down, up, down. That line is your pulse, drawn by your own blood. The technique has a grand name, photoplethysmography, which is Greek for roughly "recording swelling with light," and which I promise is the most complicated thing about it.

the part that still delights me

What gets me is how little machinery the trick needs. There's no special sensor involved. The camera in your phone was designed for birthday photos. The flash was designed to ruin them. And yet together they form a perfectly serviceable optical heart monitor, because the physics doesn't care what the hardware was for — red light goes into skin, blood absorbs some of it, the amount of blood changes rhythmically, done.

The first time I got a clean waveform out of a phone camera I sat there grinning at it for a while. There it was: the little dicrotic notch and everything, the same shape you see on hospital monitors, produced by a slab of glass and aluminium that mostly takes pictures of my lunch.

what the software actually does

The raw brightness line is scruffy. Your finger trembles, the camera adjusts its exposure, your grip drifts. So the software does three humble chores. First it averages each frame down to a single number — all those pixels become one measure of redness, which also means no image survives the process. Second, it flattens out the slow drift, the way you'd iron a wrinkled ribbon, so only the fast heartbeat wiggle remains. Third, it finds the peaks and measures the gaps between them.

And then, the one clever decision: it takes the median gap, not the average. If a peak gets missed or a twitch fakes an extra one, that bogus interval lands at the far end of the sorted list, where the median never even glances at it. Averages are polite to outliers; medians simply don't invite them in. Sixty divided by the median gap, and that's your BPM.

where it goes wrong, honestly

Cold fingers are the classic failure. Chilly hands pull blood away from the skin, and the pulse signal fades from a clear wave to a rumor. (Warm your hands on a mug first; it genuinely fixes it.) Pressing too hard is the sneaky one — squash the fingertip and you squeeze the very blood vessels you're trying to watch. And movement is the enemy of everything: to a camera, a wobble of the finger looks exactly like a huge change in brightness, which is why every camera-pulse app on earth pleads with you to hold still.

This is also why an honest tool should show you a confidence score rather than just a confident number. If the beat intervals are all over the place, the reading deserves a shrug, and you deserve to see the shrug. That's how the measuring page here behaves — and when the camera just won't cooperate, counting taps against your wrist on the tap counter is the time-honored backup. Physicians managed with two fingers and a pocket watch for centuries. The camera is a delight, not a requirement.

A curiosity, then — but a real one, made of real light and real blood. Cover the lens, hold still, and watch yourself flicker.