- 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.
102 lines
3.4 KiB
JSON
102 lines
3.4 KiB
JSON
{
|
|
"needswitch": true,
|
|
"infinite_loop_enabled": true,
|
|
"wait_minutes": 5,
|
|
"y_pianyi": 0,
|
|
"contains_not_want": [
|
|
"首饰盒"
|
|
],
|
|
"min_prize_value_yuan": 200.0,
|
|
"min_participants": 0,
|
|
"max_participants": 0,
|
|
"skip_if_countdown_gt_seconds": 120,
|
|
"reset_after_swipes_enabled": true,
|
|
"reset_after_swipes": 50,
|
|
"auto_join_fansclub": true,
|
|
"fansclub_fail_action": "switch",
|
|
"lucky_draw_red_ratio_threshold": 0.8,
|
|
"high_value_fudai_enabled": true,
|
|
"high_value_fudai_threshold_yuan": 500.0,
|
|
"high_value_fudai_join_ahead_seconds": 120,
|
|
"high_value_fudai_max_swipe_back": 50,
|
|
"high_value_fudai_max_reservations": 9999,
|
|
"high_value_fudai_after_action": "continue",
|
|
"high_value_room_revisit_enabled": true,
|
|
"high_value_room_revisit_only_current_run": true,
|
|
"reservation_back_verify_enabled": true,
|
|
"reservation_back_swipe_delay": 0.5,
|
|
"record_room_title_mapping_enabled": true,
|
|
"reservation_preempt_min_value": 0.0,
|
|
"fudai_find_max_attempts": 99999,
|
|
"fudai_icon_retry_delay_seconds": 0.1,
|
|
"fudai_icon_max_wait_seconds": 8.5,
|
|
"fudai_click_wait_seconds": 1.7,
|
|
"switch_room_wait_after_stage_diag_seconds": 4.0,
|
|
"live_room_match_threshold": 0.6,
|
|
"fudai_quiet_hours_enabled": true,
|
|
"fudai_quiet_start_hour": 2,
|
|
"fudai_quiet_end_hour": 9,
|
|
"stage_diag_max_time": 5.0,
|
|
"stage_diag_max_step_time": 2.0,
|
|
"enable_ocr_mode1": false,
|
|
"fudai_template_match_enabled": false,
|
|
"fudai_template_match_threshold": 0.7,
|
|
"fudai_detail_template_threshold": 0.54,
|
|
"coupon_template_match_threshold": 0.4,
|
|
"attend_button_red_ratio_threshold": 0.25,
|
|
"fansclub_join_red_ratio_threshold": 0.25,
|
|
"skip_if_countdown_lt_seconds": 5,
|
|
"debug_captures": {
|
|
"enabled": true,
|
|
"auto_cleanup": true,
|
|
"keep_days": 3,
|
|
"max_files": 2000
|
|
},
|
|
"yanghao_enabled": false,
|
|
"yanghao_enable_actions": false,
|
|
"yanghao_recommend_duration_seconds": 206,
|
|
"yanghao_recommend_interval_seconds": 570,
|
|
"yanghao_like_prob": 1.0,
|
|
"yanghao_fav_prob": 0.85,
|
|
"yanghao_comment_prob": 1.0,
|
|
"yanghao_icon_roi_size": 240,
|
|
"yanghao_icon_match_threshold": 0.70,
|
|
"yanghao_step_screenshot": false,
|
|
"yanghao_like_roi_offset_x": 0,
|
|
"yanghao_like_roi_offset_y": -50,
|
|
"yanghao_fav_roi_offset_x": 40,
|
|
"yanghao_fav_roi_offset_y": 0,
|
|
"yanghao_like_icon_x": 0,
|
|
"yanghao_like_icon_y": -1,
|
|
"yanghao_fav_icon_x": -1,
|
|
"yanghao_fav_icon_y": 0,
|
|
"yanghao_like_template_path": "assets/like.png",
|
|
"yanghao_fav_template_path": "assets/fav.png",
|
|
"yanghao_after_dwell_swipe_direction": "up",
|
|
"yanghao_after_dwell_swipe_distance_px": 900,
|
|
"yanghao_comment_btn_x": 0,
|
|
"yanghao_comment_btn_y": -1,
|
|
"yanghao_comment_input_x": 0,
|
|
"yanghao_comment_input_y": 0,
|
|
"yanghao_comment_send_x": 0,
|
|
"yanghao_comment_send_y": -1,
|
|
"yanghao_comment_close_x": 0,
|
|
"yanghao_comment_close_y": 0,
|
|
"yanghao_comment_texts": [],
|
|
"yanghao_like_keywords": [],
|
|
"yanghao_fav_keywords": [],
|
|
"logging": {
|
|
"level": "INFO",
|
|
"file_path": "logs/unified.log",
|
|
"keep_days": 30,
|
|
"use_dated_logs": true,
|
|
"compress_logs": true,
|
|
"max_total_size_gb": 10.0,
|
|
"compress_after_days": 7,
|
|
"max_bytes": 104857600,
|
|
"backup_count": 10,
|
|
"enable_monitor": true,
|
|
"monitor_warning_mb": 500.0,
|
|
"monitor_critical_mb": 2000.0
|
|
}
|
|
} |