feat: Enhance yanghao detection with polygon support and template matching
- Updated config.json to include new parameters for yanghao template paths and match thresholds. - Adjusted default icon match threshold in config to 0.70 for better detection. - Implemented polygon detection logic in yanghao_idle function to allow for flexible ROI configurations. - Added support for per-action ROI scaling and sizes in the configuration. - Introduced new methods in fudai_analyse for capturing ROI screenshots and matching templates. - Created a test script to validate polygon detection against provided templates. - Improved error handling and logging for better debugging during detection processes.
This commit is contained in:
1 parent
3678ff7e31
commit
a61ba62864
8 files changed
+848
-26
No files matched your search
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"updated_ts": 1767442907.6341074,
|
||||
"updated_ts": 1767488733.548808,
|
||||
"reason": "startup_clear",
|
||||
"room_pos": 0,
|
||||
"current_room_title": "",
|
||||
|
||||
Reference in new issue
Block a user