Carl-Cam
A Windows camera application with hand-controlled graphic filters and in-app gesture-model training.
Skills & tools
- Python
- PyTorch
- CUDA
- Model evaluation
- NumPy
- scikit-learn
- ONNX Runtime
- OpenCV
- MediaPipe
- PySide6
- Nuitka
- Inno Setup

Overview
Carl-Cam is a Windows camera application that combines live image processing with personal gesture recognition. Two hands define a picture frame where one of three original graphic filters appears. Learned gestures change filters and open a head-following menu, with mouse and keyboard controls available too.
The application includes its own training and evaluation workflow. Users collect numerical hand-landmark examples, compare neural-network candidates, test their behavior, and explicitly activate a model.
Project development
The project covers the desktop interface, hand-frame geometry, filter rendering, personal gesture training, and Windows packaging. Its development also includes original interface assets and automated checks for model persistence, interaction states, and GPU fallback.
The training workflow preserves the previous working model while a replacement is fitted and evaluated. Users can resume collection, inspect results, and export a candidate without including their recordings.
Technical work
Computer vision and image processing
MediaPipe supplies hand landmarks, head tracking, and segmentation. Custom geometry constructs the frame from opposing L-shaped hands, validates the quadrilateral, and confines the filter to that region. OpenCV and NumPy handle the graphic treatments and compositing, while PySide6 provides the desktop interface.
The preview is mirrored, and the outgoing scene is unmirrored. Training prompts and diagnostic screens stay out of the optional virtual-camera output.
Personal gesture training and evaluation
PyTorch fits six neural-network candidates across three feature sets containing 112, 138, or 180 measurements. These include normalized landmark coordinates, finger geometry, and optional relative depth. Each feature set is tested with two network sizes.
Recording sessions remain separate across training, validation, and held-out data. Evaluation also measures successful commands, accidental activations, and response delay. Logistic regression provides a diagnostic comparison, and candidate selection considers command performance, latency, and model size.
GPU execution and distribution
Personal-model fitting supports NVIDIA CUDA, with CPU training as the default and fallback. Saved models return to CPU-compatible weights.
An experimental GPU segmentation path uses ONNX Runtime in a separate process to isolate its dependencies from the training environment. Source images and segmentation results stay paired so delayed masks cannot decorate the wrong frame.
The application is packaged with Nuitka and distributed through a per-user Inno Setup installer.
Challenges
Gesture recognition has to remain stable while people move, release poses, or temporarily leave the camera view. Confidence thresholds, activation holds, and release-before-repeat behavior help prevent repeated or accidental commands.
Performance work required separate measurements for perception, filter rendering, and presentation. GPU segmentation reduced that stage's cost on generated fixtures, but the combined desktop pipeline still missed the 30 fps target. Pixel comparisons checked that rendering optimizations preserved the original output.
Results and current state
The repository records 1,097 passing source tests, with one production-GPU case held separately. The standalone application and a private installed copy each passed ten camera-free native checks, including CUDA fitting of all six candidates, identical CPU save/reload predictions, and the packaged segmentation helper.
Carl-Cam remains a development build. Live-camera recognition quality, sustained performance, OBS integration, and clean-machine validation still need testing.