How swinir/msfs-winwing-mcdu-scraper works
MSFS WinWing CDU Scraper turns pixels from an MSFS pop-out display into a stable character grid and forwards changed grids to WinWing hardware through MobiFlight. The main workflow is GUI setup, window capture, grid recognition, temporal stabilisation, and WebSocket delivery; optional co-pilot operation runs a separate pipeline. Recognition combines geometry, learned glyph templates, and EasyOCR, with aircraft profiles selecting grid and font settings. The graph includes documented capabilities whose wiring is not fully visible in the excerpts; those relationships are indicated as unverified where appropriate.
Main entry points: gui.py Scraper GUI · mcdu_parser.py Grid parser · pipeline.py Capture pipeline · region_selector.py Region selector
Components 19
Setup and capture
- Scraper GUI
src/gui.py - Configuration
src/config.py - Aircraft profiles
src/aircraft_profiles.py - Region selector
src/region_selector.py - Region geometry
src/region_geometry.py - Display detector
src/mcdu_detector.py - Window capture
src/window_capture.py
Grid recognition
- Grid parser
src/mcdu_parser.py - Glyph geometry
src/mcdu_glyphs.py - Learned templates
src/mcdu_templates.py - Page labels
src/mcdu_labels.py - Character set
src/mcdu_charset.py
Pipeline and delivery
- Capture pipeline
src/pipeline.py - WebSocket client
src/mobiflight_client.py
External systems
- MSFS display
- EasyOCR
- MobiFlight connector
- WinWing CDU
Other components
- User
Connections 22
- User → Scraper GUI: configures
README.md - Scraper GUI → Configuration: loads settings
src/gui.py - Scraper GUI → Aircraft profiles: selects profile
src/gui.py - Scraper GUI → Region selector: opens selector
src/gui.py - Region selector → Region geometry: uses coordinates
src/region_selector.py - Region selector → Display detector: auto-detects
src/region_selector.py - Scraper GUI → Window capture: creates capture
src/gui.py - MSFS display → Window capture: provides pixels
README.md - Scraper GUI → Capture pipeline: starts pipeline
src/gui.py - Capture pipeline → Window capture: captures frames
README.md - Capture pipeline → Grid parser: parses frames
src/pipeline.py - Grid parser → Glyph geometry: checks geometry
src/mcdu_parser.py - Grid parser → Learned templates: matches glyphs
src/mcdu_parser.py - Grid parser → Page labels: corrects labels
src/mcdu_parser.py - Grid parser → Character set: validates characters
src/mcdu_parser.py - Glyph geometry → Character set: uses symbols
src/mcdu_glyphs.py - Grid parser → EasyOCR: recognizes fallback
README.md - Aircraft profiles → Learned templates: selects store
src/aircraft_profiles.py - Capture pipeline → WebSocket client: sends changed grid
src/pipeline.py - WebSocket client → Character set: sanitizes output
src/mobiflight_client.py - WebSocket client → MobiFlight connector: connects by WebSocket
README.md - MobiFlight connector → WinWing CDU: forwards display data
README.md