itsgiving: The Webcam Meme Engine That Learns Your Face

A lightweight Python app that calibrates to your neutral face, scores expressions relative to that baseline, and pushes live meme overlays into Zoom, Meet, and Discord as a virtual camera.

7 min read • View on GitHub • More from gazijarin

A wide editorial scene of a laptop on a desk during a video call. The webcam view is layered with landmark points and measurement marks around a neutral face, while a meme overlay waits off to the side like a staged prop. The image explains that the app does not just detect reactions, it calibrates to the person first and then triggers overlays from that baseline.
The surprise is not the meme overlay. It is the calibration step that decides when the overlay should appear.
Key Takeaways

Why This Webcam App Feels Smarter Than It Looks

Most webcam meme tools are blunt instruments. They watch for a face, look for a trigger, and fire an effect. itsgiving does something more interesting: it learns what your face looks like when nothing is happening, then interprets everything else relative to that baseline.

That small change turns a novelty into a lesson in human-computer interaction. A naturally expressive face does not get punished by hardcoded thresholds, and a subtle face does not get ignored just because it is not performing loudly enough for a generic model.

I build ML models at Google by day and make strange little projects at the intersection of tech and art by night.

Gazi Jarin, Creator / Software Engineer · Gazi Jarin Portfolio

From Neutral Face to Meme Trigger

The key move is calibration. During a short startup window, the app records the user's resting face and stores summary statistics in calibration.json. Instead of asking whether a feature is above some universal threshold, it asks how far the current reading has drifted from that person's own mean.

The app is not matching faces directly. It is comparing live expression signals against the user's own baseline, then routing the result into an overlay decision.

A close-up control-bench illustration showing facial landmark samples weighed against a statistical scale. One side holds a neutral baseline, labeled by visual structure rather than text, and the other side branches into several meme assets that can be selected and composited. The image explains that the app uses personalized calibration instead of fixed expression thresholds.
A neutral face becomes a statistical reference point, and the trigger logic measures deviation from that reference.

The statistical trick under the hood

The repo's second version moves from magic numbers to a personalized score. A baseline model stores the user's typical values for dozens of blendshapes, then compares live input using distance from that baseline rather than absolute shape values.

# Conceptual version of the v2 logic
for feature_name, live_value in live_blendshapes.items():
    mean = calibration[feature_name]["mean"]
    sigma = calibration[feature_name]["sigma"]
    z = (live_value - mean) / max(sigma, 1e-6)
    if abs(z) > trigger_threshold:
        trigger(asset_map[feature_name])

What Happens on Every Frame

The runtime pipeline is direct. OpenCV grabs a frame, MediaPipe extracts face, hand, and pose landmarks, and the decision logic decides whether the current gesture crosses a calibrated boundary. If it does, an asset is composited into the frame and sent onward through pyvirtualcam.

The codebase stays small by keeping the responsibilities separate. Landmark detection is one concern, asset timing is another, and camera output is a third. That separation matters because each step can fail for different reasons.

frame = camera.read()
landmarks = detector.process(frame)
choice = decide(landmarks, calibration)
overlay = assets[choice].frame_at(time.monotonic())
composited = compositor.apply(frame, overlay)
virtual_cam.send(composited)

The asset system is also more careful than a joke repo usually needs to be. GIF timing is handled with frame duration math, and resized versions are cached so the app does not waste time calling cv2.resize on every frame.

Express yourself in meetings (with memes, of course).

Gazi Jarin, Creator / Software Engineer · gazijarin/itsgiving - GitHub

The Preflight Trick That Keeps the App from Vanishing

The sharpest engineering move in the repo is the preflight subprocess. MediaPipe can crash the process at a native level on some macOS setups, which means a normal try-catch block is not enough. So the app spins up a throwaway subprocess first, checks whether the detector initializes cleanly, and only then continues.

That is a tiny idea with a lot of practical value. It turns a mystery crash into a diagnostic step, and it shows that the project is written by someone who has already been burned by dependency and platform fragility.

Why It Beats the Usual Virtual Camera Stack for This Job

This project is not trying to replace OBS or Avatarify. It wins by being narrower. It is built for one interaction model: personal expression triggers a meme overlay, automatically, without a scene switcher or a face-swap pipeline in the middle.

ToolTrigger modelWeightPersonalizationSetup styleBest use
itsgivingCalibrated expression scoringLightweight Python appHighFocused and automaticMeme-native meeting overlays
OBS virtual cameraManual scene switchingHeavier suiteLowBroad and configurableProduction streaming and recording
AvatarifyFace animation from a source imageComputationally heavierMediumModel-driven setupAnimated avatar effects
Native meeting reactionsBuilt-in buttons and emojisVery lightLowMinimalQuick social feedback
Snap CameraPreset filters and effectsLegacy consumer appLowSimple when availableHistorical reference for fun filters

The comparison is really about control. General tools give you flexibility, but itsgiving gives you a very specific form of automation that feels tailored to a person instead of a room.

A Tiny Repo With Production Habits

The repository looks like a small project, but it carries itself like a serious one. Dependencies are pinned, assets are organized, fallback paths exist for missing media, and the code comments explain why certain version combinations are intentionally avoided.

That is what makes the project stick. It is funny enough to share, but disciplined enough to run. It reads like a prototype for personalized HCI, not a disposable demo.