An accessibility tool for visually impaired gamers that uses computer vision (YOLO) to detect UI elements in games and reads them aloud using text-to-speech.
- Real-time Object Detection: Uses YOLOv11 models via ONNX Runtime with DirectML GPU acceleration
- Three-Tier Detection System: Primary (auto-read), Secondary (on-demand), and Tertiary (on-demand) object categories
- Text-to-Speech: Windows SAPI voices with configurable voice and speed per tier
- OCR Integration: Windows.Media.Ocr for extracting text from detected regions
- Global Hotkeys: Control the app while gaming without alt-tabbing
- Per-Game Profiles: Each game has its own folder with model, labels, and configuration
- Accessibility-First UI: High contrast support, screen reader compatible
- Debug Logging: Optional logging to file for troubleshooting
- Windows 10/11 (64-bit)
- .NET 10.0 Runtime
- GPU with DirectML support (NVIDIA, AMD, or Intel) - falls back to CPU if unavailable
- Python 3.10-3.12 (only for model export)
dotnet build -c ReleaseThe executable will be at:
src\GamingVision\bin\Release\net10.0-windows10.0.22621.0\win-x64\GamingVision.exe
If you have a trained YOLOv11 .pt model, convert it to ONNX:
py -3.10 export_model.pyThis exports NoMansAccess/NoMansModel.pt to GameModels/no_mans_sky/.
dotnet run -c Release --project src\GamingVisionOr run GamingVision.exe directly.
| Hotkey | Action |
|---|---|
| Alt+1 | Read primary objects (auto-read targets) |
| Alt+2 | Read secondary objects (on-demand) |
| Alt+3 | Read tertiary objects (on-demand) |
| Alt+4 | Stop reading |
| Alt+5 | Toggle detection on/off |
| Alt+Q | Quit application |
All hotkeys are configurable per game in Game Settings.
GamingVision/
├── src/
│ ├── GamingVision/ # Main WPF application
│ │ ├── Models/ # Data models (GameProfile, Settings, etc.)
│ │ ├── ViewModels/ # MVVM ViewModels
│ │ ├── Views/ # WPF Windows and dialogs
│ │ ├── Services/
│ │ │ ├── Detection/ # YOLO detection service + DetectionManager
│ │ │ ├── Ocr/ # Windows OCR service
│ │ │ ├── Tts/ # Text-to-speech service
│ │ │ ├── Hotkeys/ # Global hotkey service
│ │ │ └── ScreenCapture/ # Windows Graphics Capture
│ │ ├── Utilities/ # ConfigManager, Logger, GPU detection
│ │ ├── Native/ # Win32 P/Invoke declarations
│ │ └── scripts/ # Python training pipeline scripts
│
├── GameModels/ # Per-game model folders
│ └── no_mans_sky/
│ ├── NoMansModel.onnx # YOLO model
│ ├── NoMansModel.txt # Label definitions
│ └── game_config.json # Game-specific configuration
│
├── training_data/ # Training data output (created by main app)
│ └── {game_id}/
│ ├── images/ # Screenshots (PNG)
│ ├── labels/ # YOLO annotations (TXT)
│ └── classes.txt # Label names for LabelImg
│
├── app_settings.json # Application-wide settings
├── export_model.py # Script to convert .pt to .onnx
└── DESIGN_DOCUMENT.md # Technical design specification
Located in the application directory:
{
"version": "0.2.1",
"selectedGame": "no_mans_sky",
"useDirectML": true,
"autoStartDetection": false,
"minimizeToTray": false,
"enableLogging": false,
"logFilePath": "logs/gamingvision.log"
}Each game has its own configuration file:
{
"gameId": "no_mans_sky",
"displayName": "No Man's Sky",
"modelFile": "NoMansModel.onnx",
"windowTitle": "No Man's Sky",
"primaryLabels": ["title", "item"],
"secondaryLabels": ["info", "quest"],
"tertiaryLabels": ["controls", "menu"],
"labelPriority": ["title", "item", "info", "quest", "controls", "menu"],
"hotkeys": {
"readPrimary": "Alt+1",
"readSecondary": "Alt+2",
"readTertiary": "Alt+3",
"stopReading": "Alt+4",
"toggleDetection": "Alt+5",
"quit": "Alt+Q"
},
"capture": {
"method": "fullscreen",
"monitorIndex": 0
},
"tts": {
"engine": "sapi",
"primaryVoice": "Microsoft David Desktop",
"primaryRate": 3,
"secondaryVoice": "Microsoft Zira Desktop",
"secondaryRate": 0,
"tertiaryVoice": "Microsoft Zira Desktop",
"tertiaryRate": 0,
"volume": 100
},
"detection": {
"autoReadCooldown": 1000,
"confidenceThreshold": 0.3,
"autoReadConfidenceThreshold": 0.6,
"autoReadEnabled": false,
"readPrimaryLabelAloud": true,
"readSecondaryLabelAloud": false,
"readTertiaryLabelAloud": false
}
}- confidenceThreshold: Minimum confidence for manual hotkey reads (0.3 = 30%)
- autoReadConfidenceThreshold: Higher threshold for auto-read to reduce false positives (0.6 = 60%)
- autoReadEnabled: Whether primary objects are automatically read when detected
- readPrimaryLabelAloud: Include the label name when speaking (e.g., "item, Health Pack")
GamingVision has built-in training data collection for creating custom YOLO models.
- Go to the Training tab
- Click CREATE NEW to create a new game profile
- Fill in the display name, select the game window, and click Create
- Enable "Enable screenshots for training" checkbox
- (Optional) Change the capture hotkey in Capture Settings (default: F1)
- Launch your game
- Press the capture hotkey to save screenshots
Note: The detection engine does NOT need to be running to capture screenshots. Just enable the training checkbox and press the capture hotkey.
- Create a game profile and capture screenshots
- Screenshots are saved to
training_data/{game}/images/ - Use LabelImg to label UI elements
- Train your model with the collected data
- Use POST PROCESS in the Training tab to re-run detection on all images after training
training_data/{game_id}/
images/screenshot_0001.png
labels/screenshot_0001.txt # Only if detections found
classes.txt # Label names for LabelImg
Annotation format (YOLO): class_id center_x center_y width height (normalized 0-1)
- Collect screenshots using the Training tab (see above)
- Label UI elements using LabelImg (annotations in
training_data/{game}/labels/) - Train a YOLOv11 model:
from ultralytics import YOLO model = YOLO('yolo11n.pt') model.train(data='your_dataset.yaml', epochs=100)
- Export to ONNX:
model.export(format='onnx', imgsz=640, simplify=True)
- Create a labels file (
modelname.txt) with one class per line - Place model and labels in
GameModels/{your_game}/
- Open App Settings from the main window
- Check "Enable Logging"
- Click Save
Logs are written to logs/gamingvision.log in the application directory.
If the application crashes, check crash_log.txt in the application directory for details.
- Framework: .NET 10, WPF
- MVVM: CommunityToolkit.Mvvm
- ML Inference: ONNX Runtime 1.16.3 with DirectML
- Screen Capture: Windows.Graphics.Capture API
- OCR: Windows.Media.Ocr (WinRT)
- TTS: System.Speech (Windows SAPI)
- GPU Detection: System.Management (WMI)
- Windows only (uses Windows-specific APIs)
- Requires a trained YOLO model for each game
- Some games with anti-cheat may block screen capture
- OCR accuracy depends on game font clarity
- ONNX inference is serialized (one frame at a time) to prevent GPU crashes
MIT License - See LICENSE file for details.
- GitHub: https://github.com/JPDoesDev/GamingVision
- Discord: https://discord.gg/jNW8Vh7dpD
- Youtube: https://www.youtube.com/@JPDoesDev
- Issues: Report bugs or request features
- Website: www.jpdoes.dev
- Contact: jpdoesdev@gmail.com
- Built on the foundation of NoMansAccess Python project
- Uses Ultralytics YOLO for object detection
- Uses ONNX Runtime for inference