Commit graph

13 commits

Author SHA1 Message Date
Hoid
957629ec2e Fix orb coordinates from pixel-level analysis: health center x=400, mana center x=1550 2026-02-14 12:01:38 +00:00
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
Hoid
67f2e5536a Add CLAUDE.md project context for Claude Code 2026-02-14 11:00:38 +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
Hoid
4ebed5e3ab Fix: register D2R resolution profiles with engine, fix null API responses 2026-02-14 10:46:40 +00:00
67f8ec1fe8 update test image 2026-02-14 11:43:53 +01:00
Hoid
4e4acaa78d Add missing cmd/iso-bot files 2026-02-14 10:39:03 +00:00
Hoid
6a9562c406 Working prototype with dev dashboard
- Created core Engine that coordinates all subsystems
- Extended API with comprehensive endpoints for dev dashboard
- Implemented pure Go vision processing (no GoCV dependency)
- Built full-featured dev dashboard with live capture viewer, region overlays, pixel inspector
- Added D2R detector with actual health/mana reading from orb regions
- Fixed resolution profile registration and region validation
- Generated synthetic test data for development
- Added dev mode support with file backend for testing
- Fixed build tag issues for cross-platform compilation

Prototype features:
 Live capture viewer with region overlays
 Real-time state detection (game state, health %, mana %)
 Pixel inspector (hover for RGB/HSV values)
 Capture stats monitoring (FPS, frame count)
 Region management with toggle visibility
 File upload for testing screenshots
 Dark theme dev-focused UI
 CORS enabled for dev convenience

Ready for: go run ./cmd/iso-bot --dev --api :8080
2026-02-14 10:23:31 +00:00
Hoid
80ba9b1b90 Add modular capture backends, resolution profiles, Wayland support 2026-02-14 10:00:19 +00:00
Hoid
3b363192f2 Rewrite to Go: engine, plugin system, D2R plugin, API, loot filter 2026-02-14 09:43:39 +00:00
Hoid
e0282a7111 Initial project structure: reusable isometric bot engine with D2R implementation 2026-02-14 08:50:36 +00:00