"""pixel - 像素 / 模板匹配检测子包。 原 douyin/detection/douyin_pixel.py 拆成 4 个子模块: - _common 共享:_safe_open_screenshot_rgb - popups 弹窗类检测:优惠券 / 红包 / 抽奖结果 - buttons 按钮区域红色检测:参与按钮 / 粉丝团加入 - stage 阶段诊断:直播间图标 / 福袋详情页 / 综合阶段状态读取 外部 import 路径不变: ``from douyin.detection.douyin_pixel import detect_fudai_detail_page`` 仍可用。 """ from ._common import _safe_open_screenshot_rgb from .popups import ( detect_coupon_popup_background, detect_redpacket_popup_background, detect_lucky_draw_result_popup, ) from .buttons import ( detect_attend_button_red_area, detect_fansclub_join_red_area, ) from .stage import ( detect_live_room_icons_by_pixel, detect_fudai_detail_page, read_pixel_stage_state_from_screenshot, ) __all__ = [ "_safe_open_screenshot_rgb", "detect_coupon_popup_background", "detect_redpacket_popup_background", "detect_lucky_draw_result_popup", "detect_attend_button_red_area", "detect_fansclub_join_red_area", "detect_live_room_icons_by_pixel", "detect_fudai_detail_page", "read_pixel_stage_state_from_screenshot", ]