Commit graph

2 commits

Author SHA1 Message Date
Hoid
0716aeb5e1 Fix D2R region coordinates and HSV calibration from real screenshot
- Health orb: (370,945)-(460,1030) — verified red center RGB(196,18,16)
- Mana orb: (1580,910)-(1670,1000) — verified blue center HSV(228,94,73)
- Health HSV tightened to H 0-10, S 150+, V 150+
- Mana HSV tightened to H 200-240, S 100+, V 80+
- Belt, skill regions also recalibrated
- 720p regions scaled proportionally
2026-02-14 11:39:06 +00:00
Hoid
4f0b84ec31 Fix prototype: calibrate vision for real D2R screenshots, implement orb detection, improve dashboard
- Created debug tool (cmd/debug/main.go) to analyze real D2R screenshots and calibrate HSV ranges
- Fixed HSV color ranges for health/mana orbs based on real screenshot analysis (99.5% and 82% detection rates)
- Replaced ReadBarPercentage with ReadOrbPercentage for circular orbs (not horizontal bars)
- Added SetSource() method to capture Manager for hot-swapping capture sources
- Fixed dashboard JavaScript null reference errors with proper array checks
- Improved dashboard refresh rate from 100ms to 1000ms for better performance
- Added proper error handling for empty/null API responses
- Successfully detecting game state, health (99.5%), and mana (82%) from real D2R screenshot
2026-02-14 10:55:30 +00:00