How gilbertfrancois/object-color-tracker works
Object Color Tracker is a desktop camera app that turns a user-calibrated object’s color into normalized position and size features for expressive control, including use as Wekinator input. Its main workflow is camera capture, color-range calibration and blob detection, then cursor/trail display and feature output. The graph separates those domain stages from controls and tracking state. The excerpts show camera setup, GUI configuration and tracking state, but omit parts of the frame-processing and OSC-send implementations; those relationships are documented or marked unverified accordingly.
Main entry points: ofApp.cpp Control Center · main.cpp App Entry
Components 14
Camera Input
- App Entry
src/main.cpp - App Runtime
src/ofApp.cpp - Camera Capture
src/ofApp.cpp
Color Tracking
- Color Calibration
src/ofApp.cpp - Color Segmentation
src/ofApp.cpp - Blob Detection
src/ofApp.cpp - Position and Size
src/ofApp.cpp - Motion Smoothing
src/ofApp.cpp
Controls and Display
- Control Center
src/ofApp.cpp - Preview and Overlays
src/ofApp.cpp
Feature Output
- OSC Sender
src/ofApp.cpp
Other components
- User
- Camera
- Wekinator or Receiver
Connections 15
- User → Control Center: calibrates and configures
README.md - App Entry → App Runtime: starts
src/main.cpp - App Runtime → Camera Capture: sets up
src/ofApp.cpp - Camera → Camera Capture: provides frames
- Control Center → Color Calibration: sets color range
README.md - Camera Capture → Color Segmentation: supplies image
src/ofApp.cpp - Color Calibration → Color Segmentation: defines accepted range
README.md - Color Segmentation → Blob Detection: finds blobs
src/ofApp.cpp - Blob Detection → Position and Size: selects largest blob
README.md - Position and Size → Motion Smoothing: updates position buffer
src/ofApp.cpp - User → Control Center: chooses camera and display
README.md - Control Center → Camera Capture: selects camera
src/ofApp.cpp - Position and Size → Preview and Overlays: draws cursor and trail
src/ofApp.cpp - Motion Smoothing → OSC Sender: provides features
src/ofApp.cpp - OSC Sender → Wekinator or Receiver: sends features