Commit graph

3 commits

Author SHA1 Message Date
Hoid
35a1944179 Calibrate orb detection from botty reference: vertical slice method, correct HSV ranges
- Add ReadOrbSlicePercentage: thin vertical strip method for accurate fill reading
- Support HSV hue wrapping in colorInRange (for red hues crossing 360°)
- Health HSV: H 350-370 (wrapping), S 60+, V 20+ (calibrated from screenshot)
- Mana HSV: H 226-240, S 100+, V 20+ (calibrated from screenshot)
- Add health_slice/mana_slice regions (10px wide vertical strips through orb centers)
- Update health_globe/mana_globe to full botty-referenced regions
- Verified: health 96.3%, mana 100% on testdata/d2r_1080p.png (both at 100% fill)
2026-02-14 11:56:18 +00:00
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
a665253d4d Fix dashboard + vision: region checkboxes, upload auto-switch, state detection, analyze endpoint
- Region checkboxes now control which overlays are drawn (?regions= param)
- Upload auto-switches capture source (no restart needed)
- State detection: check in-game BEFORE loading, require 90% dark for loading
- Tighten HSV ranges: health H 0-30 S 50+ V 30+, mana H 200-240 S 40+ V 20+
- Add /api/analyze endpoint with per-region color analysis
2026-02-14 11:27:46 +00:00