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
This commit is contained in:
parent
67f2e5536a
commit
a665253d4d
5 changed files with 277 additions and 47 deletions
|
|
@ -56,11 +56,11 @@ type Config struct {
|
|||
func DefaultConfig() Config {
|
||||
return Config{
|
||||
Colors: Colors{
|
||||
// Updated ranges based on real D2R screenshot analysis
|
||||
// Health orb - includes the actual colors found (olive/brown when low, reds when high)
|
||||
HealthFilled: HSVRange{0, 30, 10, 100, 255, 255}, // Wide range: reds through yellows/browns
|
||||
// Mana orb - includes the actual colors found (dark/brown when low, blues when high)
|
||||
ManaFilled: HSVRange{40, 20, 10, 250, 255, 255}, // Browns through blues
|
||||
// Tightened HSV ranges based on real D2R screenshot calibration
|
||||
// Health orb is RED: H 0-30 (covering red wrapping), S 50-255, V 30-255
|
||||
HealthFilled: HSVRange{0, 50, 30, 30, 255, 255},
|
||||
// Mana orb is BLUE: H 200-240, S 40-255, V 20-255
|
||||
ManaFilled: HSVRange{200, 40, 20, 240, 255, 255},
|
||||
ItemUnique: HSVRange{15, 100, 180, 30, 255, 255},
|
||||
ItemSet: HSVRange{35, 100, 150, 55, 255, 255},
|
||||
ItemRare: HSVRange{15, 50, 200, 25, 150, 255},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue