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:
Your Name committed 2026-01-04 09:06:25 +08:00
1 parent 3678ff7e31
commit a61ba62864
8 files changed
+848 -26

No files matched your search

+1 -1
View File
@@ -60,7 +60,7 @@
"yanghao_fav_prob": 0.85,
"yanghao_comment_prob": 1.0,
"yanghao_icon_roi_size": 240,
"yanghao_icon_match_threshold": 0.77,
"yanghao_icon_match_threshold": 0.70,
"yanghao_step_screenshot": false,
"yanghao_like_roi_offset_x": 0,
"yanghao_like_roi_offset_y": -50,