修复福袋详情OCR v2与调试日志
This commit is contained in:
1 parent
2c6f024a24
commit
1d37d57c90
119 files changed
+5582
-767
No files matched your search
@@ -223,6 +223,44 @@ def setup_debug_tab(parent: ttk.Notebook, *, vars_: Dict[str, tk.Variable]) -> t
|
||||
offvalue=False,
|
||||
).pack(side=LEFT, padx=(12, 0))
|
||||
|
||||
row4ocr_mode = ttk.Frame(fudai_find_box)
|
||||
row4ocr_mode.pack(fill=X, padx=10, pady=(0, 8))
|
||||
ttk.Label(row4ocr_mode, text="福袋详情页UI版本:").pack(side=LEFT)
|
||||
ttk.Combobox(
|
||||
row4ocr_mode,
|
||||
textvariable=vars_["fudai_detail_ui_mode_var"],
|
||||
values=("auto", "legacy", "v2_0"),
|
||||
width=10,
|
||||
state="readonly",
|
||||
).pack(side=LEFT)
|
||||
ttk.Label(row4ocr_mode, text="(auto优先2.0,失败保留旧版回退)").pack(
|
||||
side=LEFT, padx=(6, 0)
|
||||
)
|
||||
|
||||
row4ocr1 = ttk.Frame(fudai_find_box)
|
||||
row4ocr1.pack(fill=X, padx=10, pady=(0, 8))
|
||||
for label, var_name in (
|
||||
("内容OCR", "fudai_detail_ocr_content_enabled_var"),
|
||||
("价值OCR", "fudai_detail_ocr_value_enabled_var"),
|
||||
("倒计时OCR", "fudai_detail_ocr_countdown_enabled_var"),
|
||||
("任务OCR", "fudai_detail_ocr_task_enabled_var"),
|
||||
("任务数量OCR", "fudai_detail_ocr_task_count_enabled_var"),
|
||||
):
|
||||
ttk.Checkbutton(row4ocr1, text=label, variable=vars_[var_name]).pack(
|
||||
side=LEFT, padx=(0, 10)
|
||||
)
|
||||
|
||||
row4ocr2 = ttk.Frame(fudai_find_box)
|
||||
row4ocr2.pack(fill=X, padx=10, pady=(0, 8))
|
||||
for label, var_name in (
|
||||
("按钮文案OCR", "fudai_detail_ocr_button_enabled_var"),
|
||||
("人数OCR(默认关)", "fudai_detail_ocr_participants_enabled_var"),
|
||||
("直播间标题OCR(默认开)", "fudai_detail_ocr_live_title_enabled_var"),
|
||||
):
|
||||
ttk.Checkbutton(row4ocr2, text=label, variable=vars_[var_name]).pack(
|
||||
side=LEFT, padx=(0, 10)
|
||||
)
|
||||
|
||||
row4e = ttk.Frame(fudai_find_box)
|
||||
row4e.pack(fill=X, padx=10, pady=(0, 8))
|
||||
ttk.Label(row4e, text="切换直播间后等待时间(秒):").pack(side=LEFT)
|
||||
@@ -400,8 +438,44 @@ def setup_debug_tab(parent: ttk.Notebook, *, vars_: Dict[str, tk.Variable]) -> t
|
||||
pixel_detect_box = ttk.LabelFrame(debug_container, text="像素检测阈值")
|
||||
pixel_detect_box.pack(fill=X, padx=10, pady=(0, 10))
|
||||
|
||||
pixel_switch_r0 = ttk.Frame(pixel_detect_box)
|
||||
pixel_switch_r0.pack(fill=X, padx=10, pady=(10, 6))
|
||||
for label, var_name in (
|
||||
("福袋icon", "pixel_detect_fudai_icon_enabled_var"),
|
||||
("优惠券", "pixel_detect_coupon_popup_enabled_var"),
|
||||
("购物红包(默认关)", "pixel_detect_shopping_redpacket_enabled_var"),
|
||||
("开奖结果", "pixel_detect_lottery_result_enabled_var"),
|
||||
):
|
||||
ttk.Checkbutton(pixel_switch_r0, text=label, variable=vars_[var_name]).pack(
|
||||
side=LEFT, padx=(0, 10)
|
||||
)
|
||||
|
||||
pixel_switch_r1 = ttk.Frame(pixel_detect_box)
|
||||
pixel_switch_r1.pack(fill=X, padx=10, pady=(0, 6))
|
||||
for label, var_name in (
|
||||
("参与按钮", "pixel_detect_attend_button_enabled_var"),
|
||||
("粉丝团", "pixel_detect_fansclub_join_enabled_var"),
|
||||
("福袋详情", "pixel_detect_fudai_detail_enabled_var"),
|
||||
("直播间", "pixel_detect_live_room_enabled_var"),
|
||||
):
|
||||
ttk.Checkbutton(pixel_switch_r1, text=label, variable=vars_[var_name]).pack(
|
||||
side=LEFT, padx=(0, 10)
|
||||
)
|
||||
|
||||
ocr_switch_r0 = ttk.Frame(pixel_detect_box)
|
||||
ocr_switch_r0.pack(fill=X, padx=10, pady=(0, 10))
|
||||
for label, var_name in (
|
||||
("开奖结果OCR", "ocr_lottery_result_enabled_var"),
|
||||
("优惠券OCR", "ocr_coupon_popup_enabled_var"),
|
||||
("购物红包OCR(默认关)", "ocr_shopping_redpacket_enabled_var"),
|
||||
("页面OCR", "ocr_stage_page_enabled_var"),
|
||||
):
|
||||
ttk.Checkbutton(ocr_switch_r0, text=label, variable=vars_[var_name]).pack(
|
||||
side=LEFT, padx=(0, 10)
|
||||
)
|
||||
|
||||
pixel_r1 = ttk.Frame(pixel_detect_box)
|
||||
pixel_r1.pack(fill=X, padx=10, pady=(10, 6))
|
||||
pixel_r1.pack(fill=X, padx=10, pady=(0, 6))
|
||||
ttk.Label(pixel_r1, text="参与按钮红色占比阈值:").pack(side=LEFT)
|
||||
ttk.Spinbox(
|
||||
pixel_r1,
|
||||
|
||||
Reference in new issue
Block a user