- Updated `config.json` to include new settings for `enable_ocr_mode1` and `fudai_template_match_threshold`. - Refactored `douyin_detection.py` to implement template matching for 福袋 detection, replacing the previous pixel-based method. - Improved error handling and logging for template matching operations. - Added GUI options for enabling OCR mode and adjusting template matching threshold. - Enhanced command-line interface to support new OCR and template matching parameters.
72 lines
2.4 KiB
JSON
72 lines
2.4 KiB
JSON
{
|
|
"needswitch": true,
|
|
"wait_minutes": 5,
|
|
"min_prize_value_yuan": 200.0,
|
|
"min_participants": 0,
|
|
"max_participants": 0,
|
|
"skip_if_countdown_lt_seconds": 5,
|
|
"reset_after_swipes_enabled": true,
|
|
"reset_after_swipes": 30,
|
|
"auto_join_fansclub": true,
|
|
"fansclub_fail_action": "switch",
|
|
"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": 35,
|
|
"high_value_fudai_max_reservations": 3,
|
|
"high_value_fudai_after_action": "continue",
|
|
"high_value_room_revisit_enabled": false,
|
|
"high_value_room_revisit_only_current_run": false,
|
|
"reservation_back_verify_enabled": false,
|
|
"reservation_back_swipe_delay": 0.6,
|
|
"reservation_preempt_min_value": 0.0,
|
|
"fudai_find_max_attempts": 10,
|
|
"fudai_icon_retry_delay_seconds": 0.6,
|
|
"fudai_icon_max_wait_seconds": 7.0,
|
|
"yanghao_recommend_duration_seconds": 216,
|
|
"yanghao_recommend_interval_seconds": 600,
|
|
"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.72,
|
|
"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,
|
|
"contains_want": [],
|
|
"contains_not_want": [
|
|
"袜子"
|
|
],
|
|
"fudai_quiet_hours_enabled": true,
|
|
"fudai_quiet_start_hour": 2,
|
|
"fudai_quiet_end_hour": 6,
|
|
"yanghao_enabled": false,
|
|
"yanghao_enable_actions": false,
|
|
"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": [],
|
|
"stage_diag_max_time": 15.0,
|
|
"stage_diag_max_step_time": 4.0,
|
|
"live_room_match_threshold": 0.7,
|
|
"enable_ocr_mode1": false,
|
|
"fudai_template_match_threshold": 0.2
|
|
}
|