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
This commit is contained in:
parent
a665253d4d
commit
0716aeb5e1
6 changed files with 32 additions and 31 deletions
|
|
@ -678,15 +678,15 @@ func (s *Server) getExpectedColorRange(regionName string) *vision.ColorRange {
|
|||
switch regionName {
|
||||
case "health_orb":
|
||||
return &vision.ColorRange{
|
||||
LowerH: 0, UpperH: 30,
|
||||
LowerS: 50, UpperS: 255,
|
||||
LowerV: 30, UpperV: 255,
|
||||
LowerH: 0, UpperH: 10,
|
||||
LowerS: 150, UpperS: 255,
|
||||
LowerV: 150, UpperV: 255,
|
||||
}
|
||||
case "mana_orb":
|
||||
return &vision.ColorRange{
|
||||
LowerH: 200, UpperH: 240,
|
||||
LowerS: 40, UpperS: 255,
|
||||
LowerV: 20, UpperV: 255,
|
||||
LowerS: 100, UpperS: 255,
|
||||
LowerV: 80, UpperV: 255,
|
||||
}
|
||||
default:
|
||||
// For other regions, we don't have specific expected color ranges
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue