Modular Screen Capture System
Overviewโ
Brobot's screen capture system is designed to be completely modular, allowing you to switch between different capture providers (Robot, FFmpeg, SikuliX) with just a single configuration property. This architecture provides maximum flexibility while maintaining a consistent API across all providers.
Key Featuresโ
- Property-Based Configuration: Switch providers via
application.properties
- Zero Code Changes: Change capture tools without modifying code
- Automatic Fallback: System selects best available provider
- DPI Scaling Support: Automatic compensation for Windows scaling
- Unified Interface: Same API regardless of provider
Quick Startโ
Basic Configurationโ
The default configuration uses SikuliX with automatic DPI detection:
# Default settings in brobot-defaults.properties:
brobot.capture.provider=SIKULIX # SikuliX for maximum compatibility
brobot.dpi.disable=false # Keep DPI awareness enabled for detection
brobot.dpi.resize-factor=auto # Automatic DPI detection and compensation
No configuration needed! These defaults provide:
- Automatic DPI scaling detection
- Pattern resize compensation
- Maximum compatibility with existing patterns