Fix orb coordinates from pixel-level analysis: health center x=400, mana center x=1550
This commit is contained in:
parent
35a1944179
commit
957629ec2e
9 changed files with 32 additions and 32 deletions
|
|
@ -59,9 +59,9 @@ func DefaultConfig() Config {
|
|||
// Calibrated from botty reference (720p scaled to 1080p)
|
||||
// Health orb RED: OpenCV H 178-183 → our H 356-366, wraps around 360
|
||||
// Using H 350-360 + H 0-10 range (handled by wrapping in colorInRange)
|
||||
HealthFilled: HSVRange{350, 60, 20, 370, 255, 255}, // H wraps: 350-370 means 350-360,0-10
|
||||
// Mana orb BLUE: actual H 228-236 from screenshot
|
||||
ManaFilled: HSVRange{226, 100, 20, 240, 255, 255},
|
||||
HealthFilled: HSVRange{350, 100, 80, 370, 255, 255}, // H wraps: 350-370 means 350-360,0-10
|
||||
// Mana orb BLUE: actual H 225-245 from screenshot
|
||||
ManaFilled: HSVRange{225, 100, 60, 245, 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},
|
||||
|
|
@ -97,12 +97,12 @@ func RegisterProfiles(registry *resolution.Registry) error {
|
|||
Height: 1080,
|
||||
Label: "1080p",
|
||||
Regions: map[string]image.Rectangle{
|
||||
"health_globe": image.Rect(240, 870, 600, 1080), // Full health globe region
|
||||
"mana_globe": image.Rect(1330, 870, 1690, 1080), // Full mana globe region
|
||||
"health_slice": image.Rect(415, 915, 425, 1060), // Thin vertical strip through orb center
|
||||
"mana_slice": image.Rect(1505, 915, 1515, 1060), // Thin vertical strip through orb center
|
||||
"health_orb": image.Rect(240, 870, 600, 1080), // Alias for backward compat
|
||||
"mana_orb": image.Rect(1330, 870, 1690, 1080), // Alias for backward compat
|
||||
"health_globe": image.Rect(325, 915, 470, 1040), // Full health globe region
|
||||
"mana_globe": image.Rect(1475, 900, 1655, 1055), // Full mana globe region
|
||||
"health_slice": image.Rect(395, 920, 405, 1040), // Thin vertical strip through orb center
|
||||
"mana_slice": image.Rect(1505, 900, 1515, 1055), // Thin vertical strip through orb center
|
||||
"health_orb": image.Rect(325, 915, 470, 1040), // Alias for backward compat
|
||||
"mana_orb": image.Rect(1475, 900, 1655, 1055), // Alias for backward compat
|
||||
"xp_bar": image.Rect(0, 1058, 1920, 1080),
|
||||
"belt": image.Rect(500, 990, 900, 1040),
|
||||
"minimap": image.Rect(1600, 0, 1920, 320),
|
||||
|
|
@ -118,12 +118,12 @@ func RegisterProfiles(registry *resolution.Registry) error {
|
|||
Height: 720,
|
||||
Label: "720p",
|
||||
Regions: map[string]image.Rectangle{
|
||||
"health_globe": image.Rect(160, 580, 400, 720),
|
||||
"mana_globe": image.Rect(887, 580, 1127, 720),
|
||||
"health_slice": image.Rect(309, 610, 316, 711),
|
||||
"mana_slice": image.Rect(961, 610, 968, 711),
|
||||
"health_orb": image.Rect(160, 580, 400, 720),
|
||||
"mana_orb": image.Rect(887, 580, 1127, 720),
|
||||
"health_globe": image.Rect(217, 610, 313, 693),
|
||||
"mana_globe": image.Rect(983, 600, 1103, 703),
|
||||
"health_slice": image.Rect(263, 613, 270, 693),
|
||||
"mana_slice": image.Rect(1003, 600, 1010, 703),
|
||||
"health_orb": image.Rect(217, 610, 313, 693),
|
||||
"mana_orb": image.Rect(983, 600, 1103, 703),
|
||||
"xp_bar": image.Rect(0, 705, 1280, 720),
|
||||
"belt": image.Rect(333, 660, 600, 693),
|
||||
"minimap": image.Rect(1067, 0, 1280, 213),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue