feat: 更新高价值房间数据,调整房间信息和检测耗时

This commit is contained in:
Your Name committed 2026-01-09 15:09:06 +08:00
1 parent d739998b6b
commit 0830c08fca
7 files changed
+640 -855

No files matched your search

+2 -2
View File
@@ -7,7 +7,7 @@
"max_participants": 0,
"skip_if_countdown_gt_seconds": 120,
"reset_after_swipes_enabled": true,
"reset_after_swipes": 20,
"reset_after_swipes": 10,
"reset_after_swipes_action": "back",
"auto_join_fansclub": true,
"fansclub_fail_action": "switch",
@@ -31,7 +31,7 @@
"fudai_icon_max_wait_seconds": 6.0,
"fudai_icon_retry_delay_seconds": 0.1,
"fudai_exit_after_misses": 10,
"enable_back_on_misses": false,
"enable_back_on_misses": true,
"fudai_click_wait_seconds": 1.6,
"fudai_detail_initial_wait_seconds": 0.8,
"fudai_detail_verified_wait_seconds": 0.2,
+44 -748
View File
@@ -490,9 +490,9 @@ def check_have_fudai_with_ready_screenshot(
# 保存完整截图
debug_path = douyin_screenshot_manager.save_debug_image(
pic_rgb_full,
operation_type="pixel_detect",
picname="fudai_icon",
step="before_detect",
operation_type="detection",
picname="福袋图标",
step="检测前",
coords=(
(scan_x_start, scan_y - 3, scan_x_end, scan_y + 4)
if scan_y >= 3
@@ -618,9 +618,9 @@ def check_have_fudai_with_ready_screenshot(
pic_rgb_full = pic_new.convert("RGB")
debug_path = douyin_screenshot_manager.save_debug_image(
pic_rgb_full,
operation_type="pixel_detect",
picname="fudai_icon",
step="detected",
operation_type="detection",
picname="福袋图标",
step="检测成功",
coords=(x1, y_top, x2, y_bottom),
extra_info={
"detected_x": detected_x,
@@ -839,240 +839,7 @@ def check_have_fudai_with_ready_screenshot(
# 像素检测失败,记录但不影响主流程
pass
# 像素检测未命中时,使用模板匹配作为兜底
if not detected or detected_x is None:
try:
import cv2
import numpy as np
# 获取模板路径
try:
import path_config
template_path = path_config.get_assets_dir() + "/fudai.png"
except Exception:
# 回退到旧路径(向后兼容)
base_dir = os.path.dirname(__file__)
template_path = os.path.join(base_dir, "assets", "fudai.png")
if os.path.exists(template_path):
# 获取匹配阈值
try:
template_threshold = float(
getattr(analyser, "fudai_template_match_threshold", 0.7)
or 0.7
)
except Exception:
template_threshold = 0.7
# 读取模板
template = cv2.imread(template_path, cv2.IMREAD_COLOR)
if template is not None:
# 将PIL图片转换为OpenCV格式
pic_rgb = pic_new.convert("RGB")
screenshot_bgr = cv2.cvtColor(
np.array(pic_rgb), cv2.COLOR_RGB2BGR
)
# 定义搜索区域:X=156-269(1080基准),Y=351-451(2400基准)
x1 = max(0, 156 * rx // 1080)
x2 = min(width, 269 * rx // 1080)
y_top = max(0, 351 * ry // 2400 + y_pianyi_val)
y_bottom = min(height, 451 * ry // 2400 + y_pianyi_val)
if x1 < x2 and y_top < y_bottom:
search_roi = screenshot_bgr[y_top:y_bottom, x1:x2] # type: ignore[index]
if search_roi.size > 0:
th, tw = template.shape[:2]
rh, rw = search_roi.shape[:2]
# 保存搜索区域截图到 last_match.png
try:
base_dir = os.path.dirname(__file__)
pic_base = os.path.join(base_dir, "pic")
match_dir = os.path.join(pic_base, "template_match")
os.makedirs(match_dir, exist_ok=True)
last_match_path = os.path.join(
match_dir, "last_match.png"
)
# 保存截图并检查是否成功
save_success = cv2.imwrite(
last_match_path, search_roi
)
if save_success:
try:
analyser._log_kv(
"[找福袋图标] 已保存搜索区域截图",
loop=loop,
文件路径=last_match_path,
搜索区域尺寸=f"{rw}x{rh}",
搜索区域坐标=f"({x1},{y_top})-({x2},{y_bottom})",
)
except Exception:
pass
else:
try:
analyser._log_kv(
"[找福袋图标] 保存搜索区域截图失败",
loop=loop,
文件路径=last_match_path,
)
except Exception:
pass
except Exception as save_err:
try:
analyser._log_kv(
"[找福袋图标] 保存搜索区域截图异常",
loop=loop,
错误类型=type(save_err).__name__,
错误信息=str(save_err),
)
except Exception:
pass
# 如果模板太大,缩小模板
if th > rh or tw > rw:
scale = min(rh / max(th, 1), rw / max(tw, 1))
if scale > 0:
template = cv2.resize(
template,
(
max(1, int(tw * scale)),
max(1, int(th * scale)),
),
)
th, tw = template.shape[:2]
# 执行模板匹配
if th <= rh and tw <= rw:
res = cv2.matchTemplate(
search_roi, template, cv2.TM_CCOEFF_NORMED
)
_min_val, max_val, _min_loc, max_loc = (
cv2.minMaxLoc(res)
)
# 双截图记录:保存实时操作截图(搜索区域)
try:
import importlib
douyin_screenshot_manager = importlib.import_module(
"douyin.handlers.douyin_screenshot_manager"
)
from PIL import Image as PILImage
search_roi_pil = PILImage.fromarray(
cv2.cvtColor(search_roi, cv2.COLOR_BGR2RGB)
)
douyin_screenshot_manager.save_latest_attempt(
search_roi_pil,
operation_type="template_match",
)
except Exception:
pass
try:
analyser._log_kv(
"[找福袋图标] 模板匹配兜底",
loop=loop,
匹配分数=round(max_val, 4),
阈值=template_threshold,
是否通过=bool(
max_val >= template_threshold
),
搜索区域=f"({x1},{y_top})-({x2},{y_bottom})",
搜索区域尺寸=f"{rw}x{rh}",
模板尺寸=f"{tw}x{th}",
截图尺寸=f"{width}x{height}",
分辨率=f"{rx}x{ry}",
)
except Exception:
pass
if max_val >= template_threshold:
# 双截图记录:保存成功识别存档截图
try:
import importlib
douyin_screenshot_manager = importlib.import_module(
"douyin.handlers.douyin_screenshot_manager"
)
from PIL import Image as PILImage
search_roi_pil = PILImage.fromarray(
cv2.cvtColor(
search_roi, cv2.COLOR_BGR2RGB
)
)
douyin_screenshot_manager.save_last_success(
search_roi_pil,
operation_type="template_match",
)
except Exception:
pass
# 计算检测到的X坐标(1080基准)
detected_x_in_roi = max_loc[0]
detected_x = int(
(x1 + detected_x_in_roi + tw // 2)
* 1080.0
/ max(1, rx)
)
detected = True
try:
analyser.last_find_fudai_time = time.time()
except Exception:
pass
else:
# 模板尺寸不匹配,记录调试信息
try:
analyser._log_kv(
"[找福袋图标] 模板匹配失败-尺寸不匹配",
loop=loop,
模板尺寸=f"{tw}x{th}",
搜索区域尺寸=f"{rw}x{rh}",
条件=f"th({th})<=rh({rh}) and tw({tw})<=rw({rw})",
)
except Exception:
pass
else:
# 搜索区域为空,记录调试信息
try:
analyser._log_kv(
"[找福袋图标] 模板匹配失败-搜索区域为空",
loop=loop,
搜索区域=f"({x1},{y_top})-({x2},{y_bottom})",
截图尺寸=f"{width}x{height}",
)
except Exception:
pass
else:
# 搜索区域坐标无效,记录调试信息
try:
analyser._log_kv(
"[找福袋图标] 模板匹配失败-坐标无效",
loop=loop,
x1=x1,
x2=x2,
y_top=y_top,
y_bottom=y_bottom,
截图尺寸=f"{width}x{height}",
分辨率=f"{rx}x{ry}",
)
except Exception:
pass
except (ImportError, Exception) as e:
# OpenCV不可用或模板匹配失败,继续使用像素检测结果
try:
analyser._log_kv(
"[找福袋图标] 模板匹配异常",
loop=loop,
错误类型=type(e).__name__,
错误信息=str(e),
)
except Exception:
pass
# 像素检测未命中时,不再使用模板匹配作为兜底(已删除)
if detected and detected_x is not None:
# 重置连续失败计数
@@ -1200,516 +967,45 @@ def check_have_fudai_with_ready_screenshot(
)
except Exception:
pass
# 保存完整截图用于调试(检测完成但未找到)
try:
from douyin.handlers import douyin_screenshot_manager
pic_rgb_full = pic_new.convert("RGB")
# 保存完整截图
debug_path = douyin_screenshot_manager.save_debug_image(
pic_rgb_full,
operation_type="detection",
picname="福袋图标",
step="检测完成未找到",
coords=(
(scan_x_start, scan_y - 3, scan_x_end, scan_y + 4)
if scan_y >= 3
else None
),
extra_info={
"scan_range": f"x:{scan_x_start}-{scan_x_end}, y:{scan_y}",
"resolution": f"{rx}x{ry}",
"y_offset": y_pianyi_val,
"total_loops": loop,
"result": "not_found",
"elapsed_ms": total_elapsed_ms,
},
)
if debug_path:
try:
analyser._log_kv(
"[调试图像]", "福袋图标检测完成保存完整截图", path=debug_path
)
except Exception:
pass
except Exception:
pass
return False
try:
retry_delay_s = float(
getattr(analyser, "fudai_icon_retry_delay_seconds", 0.3) or 0.3
)
except Exception:
retry_delay_s = 0.3
try:
max_wait_s = float(getattr(analyser, "fudai_icon_max_wait_seconds", 2.5) or 2.5)
except Exception:
max_wait_s = 2.5
if retry_delay_s < 0.15:
retry_delay_s = 0.15
if max_wait_s < 0:
max_wait_s = 0.0
try:
analyser._log_kv(
"[找福袋图标] 开始",
f"最大等待时间{max_wait_s}秒,复用截图={screenshot_ready},使用模板匹配",
)
except Exception:
pass
detected_any = False
detected_x = None
# 检查OpenCV是否可用
try:
import cv2
import numpy as np
except Exception:
try:
analyser._log_kv(
"[找福袋图标] 错误", "OpenCV/numpy不可用,无法使用模板匹配"
)
except Exception:
pass
return False
# 获取模板路径
try:
import path_config
template_path = path_config.get_assets_dir() + "/fudai.png"
except Exception:
# 回退到旧路径(向后兼容)
base_dir = os.path.dirname(__file__)
template_path = os.path.join(base_dir, "assets", "fudai.png")
if not os.path.exists(template_path):
try:
analyser._log_kv("[找福袋图标] 错误", f"模板文件不存在: {template_path}")
except Exception:
pass
return False
# 获取匹配阈值
try:
template_threshold = float(
getattr(analyser, "fudai_template_match_threshold", 0.7) or 0.7
)
except Exception:
template_threshold = 0.7
# 完全基于时间限制,不使用次数限制
while (time.time() - func_start) < max_wait_s:
attempt_start = time.time()
attempt_count += 1
# Reuse external screenshot only on first attempt if provided
if not (screenshot_ready and attempt_count == 1):
try:
analyser._shot_and_diagnose(
"找福袋图标", "判定是否存在福袋", analyser.device_id, diagnose=False
)
except Exception:
pass
try:
screenshot_img = cv2.imread(pic1_path, cv2.IMREAD_COLOR)
if screenshot_img is None:
try:
analyser.operation.get_screenshot(
analyser.device_id, use_service=False
)
screenshot_img = cv2.imread(pic1_path, cv2.IMREAD_COLOR)
except Exception:
pass
if screenshot_img is None:
elapsed = time.time() - func_start
if elapsed < max_wait_s:
remaining_time = max_wait_s - elapsed
sleep_time = min(retry_delay_s, remaining_time)
if sleep_time > 0:
try:
analyser.operation.delay(sleep_time)
except Exception:
time.sleep(sleep_time)
continue
except Exception:
elapsed = time.time() - func_start
if elapsed < max_wait_s:
remaining_time = max_wait_s - elapsed
sleep_time = min(retry_delay_s, remaining_time)
if sleep_time > 0:
try:
analyser.operation.delay(sleep_time)
except Exception:
time.sleep(sleep_time)
continue
# Resolution ratios
try:
rx = int(getattr(analyser, "resolution_ratio_x", 1080) or 1080)
except Exception:
rx = 1080
try:
ry = int(getattr(analyser, "resolution_ratio_y", 2400) or 2400)
except Exception:
ry = 2400
try:
y_pianyi_val = int(getattr(analyser, "y_pianyi", 0) or 0)
except Exception:
y_pianyi_val = 0
# 定义搜索区域(仅在更小的范围内寻找福袋图标)
# X范围:157-269(1080基准) # 左上角 X 改为图片中的坐标 x=157(右下不变)
# Y范围:354-451(2400基准) # 左上角 Y 改为图片中的坐标 y=354(右下不变)
search_x1 = max(0, 157 * rx // 1080)
search_x2 = min(screenshot_img.shape[1], 269 * rx // 1080)
search_y1_base = 354 * ry // 2400 + y_pianyi_val
search_y2_base = 451 * ry // 2400 + y_pianyi_val
search_y1 = max(0, search_y1_base)
search_y2 = min(screenshot_img.shape[0], search_y2_base)
if search_x1 >= search_x2 or search_y1 >= search_y2:
elapsed = time.time() - func_start
if elapsed < max_wait_s:
remaining_time = max_wait_s - elapsed
sleep_time = min(retry_delay_s, remaining_time)
if sleep_time > 0:
try:
analyser.operation.delay(sleep_time)
except Exception:
time.sleep(sleep_time)
continue
# 裁剪搜索区域
search_roi = screenshot_img[search_y1:search_y2, search_x1:search_x2]
# 读取模板
try:
template = cv2.imread(template_path, cv2.IMREAD_COLOR)
if template is None:
try:
analyser._log_kv(
"[找福袋图标] 错误", f"无法读取模板文件: {template_path}"
)
except Exception:
pass
elapsed = time.time() - func_start
if elapsed < max_wait_s:
remaining_time = max_wait_s - elapsed
sleep_time = min(retry_delay_s, remaining_time)
if sleep_time > 0:
try:
analyser.operation.delay(sleep_time)
except Exception:
time.sleep(sleep_time)
continue
except Exception as e:
try:
analyser._log_kv("[找福袋图标] 错误", f"读取模板文件异常: {str(e)}")
except Exception:
pass
elapsed = time.time() - func_start
if elapsed < max_wait_s:
remaining_time = max_wait_s - elapsed
sleep_time = min(retry_delay_s, remaining_time)
if sleep_time > 0:
try:
analyser.operation.delay(sleep_time)
except Exception:
time.sleep(sleep_time)
continue
# 检查模板和搜索区域尺寸
th, tw = template.shape[:2]
rh, rw = search_roi.shape[:2]
if th > rh or tw > rw:
# 模板太大,缩小模板
scale = min(rh / max(th, 1), rw / max(tw, 1))
if scale > 0:
template = cv2.resize(
template, (max(1, int(tw * scale)), max(1, int(th * scale)))
)
th, tw = template.shape[:2]
# 执行模板匹配(使用彩色匹配)
try:
template_match_start = time.time()
# 详细日志:记录搜索区域和模板信息
try:
analyser._log_kv(
"[找福袋图标] 模板匹配开始",
f"搜索区域",
search_x1=search_x1,
search_x2=search_x2,
search_y1=search_y1,
search_y2=search_y2,
search_width=search_x2 - search_x1,
search_height=search_y2 - search_y1,
template_width=tw,
template_height=th,
template_path=template_path,
阈值=template_threshold,
匹配模式="彩色(BGR)",
)
except Exception:
pass
# 使用彩色匹配(BGR三通道)
res = cv2.matchTemplate(search_roi, template, cv2.TM_CCOEFF_NORMED)
_min_val, max_val, _min_loc, max_loc = cv2.minMaxLoc(res)
# 双截图记录:保存实时操作截图(搜索区域)
try:
import importlib
douyin_screenshot_manager = importlib.import_module(
"douyin.handlers.douyin_screenshot_manager"
)
from PIL import Image as PILImage
search_roi_pil = PILImage.fromarray(
cv2.cvtColor(search_roi, cv2.COLOR_BGR2RGB)
)
douyin_screenshot_manager.save_latest_attempt(
search_roi_pil, operation_type="template_match"
)
# 保存调试图像(匹配前)- 使用完整截图
screenshot_pil = PILImage.fromarray(
cv2.cvtColor(screenshot_img, cv2.COLOR_BGR2RGB)
)
debug_path = douyin_screenshot_manager.save_debug_image(
screenshot_pil,
operation_type="template_match",
picname="fudai_icon",
step="before_match",
coords=(search_x1, search_y1, search_x2, search_y2),
extra_info={
"template": (
os.path.basename(template_path) if template_path else ""
),
"template_size": f"{tw}x{th}",
"search_size": f"{search_x2-search_x1}x{search_y2-search_y1}",
"threshold": template_threshold,
},
)
if debug_path:
try:
analyser._log_kv(
"[调试图像]",
"模板匹配前保存",
path=debug_path,
coords=f"({search_x1},{search_y1})-({search_x2},{search_y2})",
)
except Exception:
pass
except Exception:
pass
template_match_elapsed = (time.time() - template_match_start) * 1000
# 详细日志:记录匹配结果
try:
analyser._log_kv(
"[找福袋图标] 模板匹配结果",
f"匹配分数={round(max_val, 4)},阈值={template_threshold}",
耗时毫秒=round(template_match_elapsed, 2),
是否通过=bool(max_val >= template_threshold),
最小分数=round(_min_val, 4),
最佳位置=f"({max_loc[0]}, {max_loc[1]})",
)
except Exception:
pass
if max_val >= template_threshold:
# 双截图记录:保存成功识别存档截图
try:
import importlib
douyin_screenshot_manager = importlib.import_module(
"douyin.handlers.douyin_screenshot_manager"
)
from PIL import Image as PILImage
search_roi_pil = PILImage.fromarray(
cv2.cvtColor(search_roi, cv2.COLOR_BGR2RGB)
)
douyin_screenshot_manager.save_last_success(
search_roi_pil, operation_type="template_match"
)
# 保存带匹配结果的调试图像(带匹配框)- 使用完整截图
screenshot_pil = PILImage.fromarray(
cv2.cvtColor(screenshot_img, cv2.COLOR_BGR2RGB)
)
# 计算匹配位置在完整截图中的坐标
match_x_in_roi = max_loc[0]
match_y_in_roi = max_loc[1]
match_x1 = search_x1 + match_x_in_roi
match_y1 = search_y1 + match_y_in_roi
match_x2 = search_x1 + match_x_in_roi + tw
match_y2 = search_y1 + match_y_in_roi + th
match_coords = (match_x1, match_y1, match_x2, match_y2)
debug_path = douyin_screenshot_manager.save_debug_image(
screenshot_pil,
operation_type="template_match",
picname="fudai_icon",
step="matched",
coords=(
search_x1,
search_y1,
search_x2,
search_y2,
), # 搜索区域坐标
extra_info={
"match_score": round(max_val, 4),
"match_location": f"({max_loc[0]},{max_loc[1]})",
"match_coords": match_coords, # 匹配位置坐标
"template_size": f"{tw}x{th}",
"threshold": template_threshold,
"passed": True,
},
)
if debug_path:
try:
analyser._log_kv(
"[调试图像]",
"模板匹配成功保存",
path=debug_path,
score=round(max_val, 4),
location=f"({max_loc[0]},{max_loc[1]})",
)
except Exception:
pass
except Exception:
pass
# 计算检测到的X坐标(1080基准)
detected_x_in_roi = max_loc[0]
detected_x = int(
(search_x1 + detected_x_in_roi + tw // 2) * 1080.0 / max(1, rx)
)
detected_y_in_roi = max_loc[1]
detected_y = int(
(search_y1 + detected_y_in_roi + th // 2) * 2400.0 / max(1, ry)
)
detected_any = True
# 保存匹配位置的图片
try:
# 计算匹配区域在原图中的坐标(扩大一些范围以便查看上下文)
margin = 20 # 扩大20像素的边距
match_x1 = max(0, search_x1 + detected_x_in_roi - margin)
match_y1 = max(0, search_y1 + detected_y_in_roi - margin)
match_x2 = min(
screenshot_img.shape[1],
search_x1 + detected_x_in_roi + tw + margin,
)
match_y2 = min(
screenshot_img.shape[0],
search_y1 + detected_y_in_roi + th + margin,
)
# 裁剪匹配区域
match_roi = screenshot_img[match_y1:match_y2, match_x1:match_x2]
# 保存到 pic/template_match/ 目录
base_dir = os.path.dirname(__file__)
pic_base = os.path.join(base_dir, "pic")
match_dir = os.path.join(pic_base, "template_match")
os.makedirs(match_dir, exist_ok=True)
# 文件名包含时间戳和匹配分数
timestamp = int(time.time() * 1000)
score_str = f"{max_val:.4f}".replace(".", "_")
match_filename = f"fudai_match_{timestamp}_score_{score_str}.png"
match_path = os.path.join(match_dir, match_filename)
# 检查裁剪区域是否有效
if match_roi.size == 0:
analyser._log_kv(
"[找福袋图标] 警告",
"匹配区域裁剪后为空,跳过保存",
区域坐标=f"({match_x1}, {match_y1}) - ({match_x2}, {match_y2})",
)
else:
# 保存图片
save_success = cv2.imwrite(match_path, match_roi)
# 验证文件是否真的保存成功
file_exists = os.path.exists(match_path)
file_size = os.path.getsize(match_path) if file_exists else 0
analyser._log_kv(
"[找福袋图标] 已保存匹配位置图片",
f"路径: {match_path}",
匹配区域=f"({match_x1}, {match_y1}) - ({match_x2}, {match_y2})",
区域大小=f"{match_x2 - match_x1}x{match_y2 - match_y1}",
ROI尺寸=f"{match_roi.shape[1]}x{match_roi.shape[0]}",
cv2保存返回值=save_success,
文件存在=file_exists,
文件大小字节=file_size,
)
if not file_exists or file_size == 0:
analyser._log_kv(
"[找福袋图标] 警告",
"保存的图片文件不存在或大小为0",
路径=match_path,
)
else:
# 保存成功,输出绝对路径方便查看
abs_path = os.path.abspath(match_path)
analyser._log_kv(
"[找福袋图标] 图片保存成功",
f"绝对路径: {abs_path}",
)
except Exception as e:
try:
analyser._log_kv(
"[找福袋图标] 保存匹配位置图片失败",
f"异常: {str(e)}",
)
except Exception:
pass
try:
analyser.last_find_fudai_time = time.time()
analyser._log_kv(
"[找福袋图标] 模板匹配命中",
f"检测到福袋图标",
x=detected_x,
y=detected_y,
匹配分数=round(max_val, 4),
x_in_roi=detected_x_in_roi,
y_in_roi=detected_y_in_roi,
模板中心偏移=f"({tw//2}, {th//2})",
实际屏幕坐标=f"({detected_x}, {detected_y})",
)
except Exception:
pass
break
else:
# 未命中时也记录日志
try:
analyser._log_kv(
"[找福袋图标] 模板匹配未命中",
f"匹配分数={round(max_val, 4)} < 阈值={template_threshold}",
差值=round(template_threshold - max_val, 4),
)
except Exception:
pass
except Exception as e:
try:
analyser._log_kv(
"[找福袋图标] 模板匹配异常",
f"异常: {str(e)}",
异常类型=type(e).__name__,
)
except Exception:
pass
# 检查是否还有剩余时间
elapsed = time.time() - func_start
if elapsed < max_wait_s:
remaining_time = max_wait_s - elapsed
sleep_time = min(retry_delay_s, remaining_time)
if sleep_time > 0:
try:
analyser.operation.delay(sleep_time)
except Exception:
time.sleep(sleep_time)
try:
total_elapsed = time.time() - func_start
analyser._log_kv(
"[找福袋图标] 结束",
"检测完成",
detected=bool(detected_any and detected_x is not None),
elapsed_ms=int(total_elapsed * 1000),
)
except Exception:
pass
# 与原始 fudai.py 的 check_have_fudai 行为保持一致:
# 返回福袋图标的 x 坐标(1080 基准坐标),未找到返回 False。
return int(detected_x) if detected_x is not None else False
# ========== 以下为旧的像素检测代码,已暂时禁用 ==========
# 像素检测代码已删除,使用模板匹配替代
# 如需恢复像素检测,请参考 git 历史记录
def check_in_fudai_detail(analyser: Any) -> bool:
"""Detect whether we are currently on the fudai detail page.
+12 -6
View File
@@ -1071,15 +1071,18 @@ def read_pixel_stage_state_from_screenshot(
# 使用线程池并行执行检测(增加线程数以支持直播间图标检测)
with ThreadPoolExecutor(max_workers=8) as executor:
# 提交所有任务
future_to_key = {
executor.submit(detect_func, pic_rgb): key
for key, detect_func in detection_tasks.items()
}
# 提交所有任务,并记录开始时间
import time
future_to_key = {}
for key, detect_func in detection_tasks.items():
start_time = time.time()
future = executor.submit(detect_func, pic_rgb)
future_to_key[future] = (key, start_time)
# 收集结果
for future in as_completed(future_to_key):
key = future_to_key[future]
key, start_time = future_to_key[future]
elapsed_ms = (time.time() - start_time) * 1000
try:
result = future.result()
@@ -1100,6 +1103,7 @@ def read_pixel_stage_state_from_screenshot(
"red_ratio": info.get("red_ratio"), # 添加red_ratio支持
"effective_threshold": info.get("effective_threshold"),
"reason": info.get("reason"),
"elapsed_ms": round(elapsed_ms, 1), # 添加耗时
}
else:
# 其他检测返回 bool(不应该发生,因为所有检测都支持return_info)
@@ -1108,6 +1112,7 @@ def read_pixel_stage_state_from_screenshot(
details[key] = {
"detected": bool(result),
"method": "unknown",
"elapsed_ms": round(elapsed_ms, 1), # 添加耗时
}
except Exception as e: # type: ignore[general-exception]
# 如果某个检测失败,保持默认值 False
@@ -1116,6 +1121,7 @@ def read_pixel_stage_state_from_screenshot(
details[key] = {
"detected": False,
"error": str(e),
"elapsed_ms": round(elapsed_ms, 1), # 添加耗时
}
if return_details:
+55 -7
View File
@@ -111,6 +111,15 @@ class FudaiDetector:
except Exception:
self.rx, self.ry, self.y_pianyi = 1080, 2400, 0
# 记录调试图像管理器状态
try:
self.analyser._log_kv(
"[福袋查找] 初始化",
f"调试图像管理器状态: {'可用' if douyin_screenshot_manager else '不可用'}"
)
except Exception:
pass
def _init_search_regions(self):
"""初始化搜索区域
@@ -287,9 +296,9 @@ class FudaiDetector:
try:
if douyin_screenshot_manager:
debug_coords = (x1, y_top, x2, y_bottom)
douyin_screenshot_manager.save_debug_image(
debug_path = douyin_screenshot_manager.save_debug_image(
pic,
operation_type="pixel_detect",
operation_type="detection",
picname="fudai_icon",
step="detected",
coords=debug_coords,
@@ -300,8 +309,27 @@ class FudaiDetector:
"color_range": "R:190-206,G:173-196,B:234-250",
},
)
except Exception:
pass # 调试图像保存失败不影响主流程
if debug_path:
try:
self.analyser._log_kv(
"[调试图像]", "福袋图标像素检测命中保存", path=debug_path
)
except Exception:
pass
else:
try:
self.analyser._log_kv(
"[调试图像]", "福袋图标像素检测命中但截图管理器不可用"
)
except Exception:
pass
except Exception as e:
try:
self.analyser._log_kv(
"[调试图像]", "福袋图标像素检测命中保存失败", error=str(e)
)
except Exception:
pass
elapsed = (time.time() - start_time) * 1000
@@ -434,9 +462,9 @@ class FudaiDetector:
try:
if douyin_screenshot_manager:
debug_coords = (x1, y_top, x2, y_bottom)
douyin_screenshot_manager.save_debug_image(
debug_path = douyin_screenshot_manager.save_debug_image(
pic,
operation_type="pixel_detect",
operation_type="detection",
picname="fudai_icon",
step="detected_fallback",
coords=debug_coords,
@@ -448,7 +476,27 @@ class FudaiDetector:
"mode": "fallback_pixel_search",
},
)
except Exception:
if debug_path:
try:
self.analyser._log_kv(
"[调试图像]", "福袋图标逐像素检测命中保存", path=debug_path
)
except Exception:
pass
else:
try:
self.analyser._log_kv(
"[调试图像]", "福袋图标逐像素检测命中但截图管理器不可用"
)
except Exception:
pass
except Exception as e:
try:
self.analyser._log_kv(
"[调试图像]", "福袋图标逐像素检测命中保存失败", error=str(e)
)
except Exception:
pass
pass # 调试图像保存失败不影响主流程
elapsed = (time.time() - start_time) * 1000
+16 -1
View File
@@ -208,6 +208,17 @@ class LoggingWrapper:
"attempt": "尝试次数",
"room_title": "直播间名",
"back_times": "需回退次数",
"elapsed_ms": "耗时",
"分数": "分数",
"置信度": "置信度",
"阈值": "阈值",
"红色比例": "红色比例",
"匹配分数": "匹配分数",
"模板匹配分数": "模板匹配分数",
"平均分": "平均分",
"检测结果": "检测结果",
"检测方法": "检测方法",
"耗时(ms)": "耗时",
}
# 构建简洁的日志行:时间 [级别] [标签] 消息 关键字段
@@ -232,13 +243,17 @@ class LoggingWrapper:
if v is None:
continue
# 只显示关键字段:耗时、价值、错误等
if k in ("elapsed_seconds", "value_yuan", "error", "room_pos", "future_ts"):
if k in ("elapsed_seconds", "value_yuan", "error", "room_pos", "future_ts", "elapsed_ms", "分数", "置信度", "阈值", "红色比例", "匹配分数", "模板匹配分数", "平均分", "检测结果", "检测方法", "耗时(ms)"):
key_cn = key_map.get(str(k), k)
if isinstance(v, float):
if "seconds" in k or "elapsed" in k:
v_str = f"{v:.1f}s"
elif "yuan" in k:
v_str = f"{v:.0f}元"
elif "ms" in k:
v_str = f"{v:.0f}ms"
elif "分数" in k or "置信度" in k or "比例" in k or "阈值" in k:
v_str = f"{v:.3f}"
else:
v_str = f"{v:.1f}"
else:
+1 -1
View File
@@ -95,7 +95,7 @@ def format_gui_log_line(line: str) -> str:
def _is_score_field(k: str) -> bool:
kl = k.lower()
return "score" in kl or "match" in kl or "匹配" in k or "相似" in k
return "score" in kl or "match" in kl or "匹配" in k or "相似" in k or "耗时" in k
# 解析字段
words = msg_part.split()
+510 -90
View File
@@ -1,7 +1,7 @@
{
"updated_ts": 1767883444.4458597,
"updated_ts": 1767942535.0661564,
"reason": "reservation",
"total": 121,
"total": 147,
"rooms": [
{
"first_seen_ts": 1765799932.458368,
@@ -50,10 +50,10 @@
},
{
"first_seen_ts": 1765978498.2618399,
"last_seen_ts": 1767883313.9794135,
"seen_count": 11,
"pos_seen": 6,
"pos_updated_ts": 1767883313.9794135,
"last_seen_ts": 1767885329.1539862,
"seen_count": 15,
"pos_seen": 5,
"pos_updated_ts": 1767885329.1539862,
"room_title_raw_last": "小小101",
"alias_raw": [
"小小101"
@@ -548,10 +548,10 @@
},
{
"first_seen_ts": 1765736209.4437785,
"last_seen_ts": 1767881955.1006455,
"seen_count": 37,
"pos_seen": 9,
"pos_updated_ts": 1767881955.1006455,
"last_seen_ts": 1767942493.60277,
"seen_count": 74,
"pos_seen": 4,
"pos_updated_ts": 1767942493.60277,
"room_title_raw_last": "梵象名品",
"alias_raw": [
"梵象名品...",
@@ -1548,13 +1548,14 @@
},
{
"first_seen_ts": 1767853071.4178188,
"last_seen_ts": 1767864679.9977684,
"seen_count": 2,
"pos_seen": 0,
"pos_updated_ts": 1767864679.9977684,
"room_title_raw_last": "陈二废姐",
"last_seen_ts": 1767930575.475749,
"seen_count": 6,
"pos_seen": 1,
"pos_updated_ts": 1767930575.475749,
"room_title_raw_last": "陈二废姐。",
"alias_raw": [
"陈二废姐"
"陈二废姐",
"陈二废姐。"
],
"key_kind": "norm",
"last_content": "",
@@ -1564,10 +1565,10 @@
},
{
"first_seen_ts": 1767853118.7645984,
"last_seen_ts": 1767881364.4998195,
"seen_count": 18,
"pos_seen": 7,
"pos_updated_ts": 1767881364.4998195,
"last_seen_ts": 1767886121.8229468,
"seen_count": 20,
"pos_seen": 15,
"pos_updated_ts": 1767886121.8229468,
"room_title_raw_last": "带娃的小。",
"alias_raw": [
"带娃的小。。",
@@ -1581,10 +1582,10 @@
},
{
"first_seen_ts": 1767853143.7722397,
"last_seen_ts": 1767859934.4398284,
"seen_count": 3,
"pos_seen": 13,
"pos_updated_ts": 1767859934.4398284,
"last_seen_ts": 1767941914.0201733,
"seen_count": 16,
"pos_seen": 3,
"pos_updated_ts": 1767941914.0201733,
"room_title_raw_last": "隋心",
"alias_raw": [
"隋心"
@@ -1597,10 +1598,10 @@
},
{
"first_seen_ts": 1767853185.2990494,
"last_seen_ts": 1767882793.2971323,
"seen_count": 28,
"pos_seen": 10,
"pos_updated_ts": 1767882793.2971323,
"last_seen_ts": 1767942093.21747,
"seen_count": 49,
"pos_seen": 2,
"pos_updated_ts": 1767942093.21747,
"room_title_raw_last": "作业帮数",
"alias_raw": [
"作业帮数"
@@ -1613,26 +1614,26 @@
},
{
"first_seen_ts": 1767855835.1611204,
"last_seen_ts": 1767855835.1611204,
"seen_count": 1,
"pos_seen": 6,
"pos_updated_ts": 1767855835.1611204,
"last_seen_ts": 1767941289.9790452,
"seen_count": 15,
"pos_seen": 4,
"pos_updated_ts": 1767941289.9790452,
"room_title_raw_last": "逍遥珠宝",
"alias_raw": [
"逍遥珠宝"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 11888.0,
"last_prize_value_yuan": 1888.0,
"max_prize_value_yuan": 11888.0,
"room_title": "逍遥珠宝"
},
{
"first_seen_ts": 1767855960.0764549,
"last_seen_ts": 1767866180.336872,
"seen_count": 8,
"pos_seen": 1,
"pos_updated_ts": 1767866180.336872,
"last_seen_ts": 1767931502.1729395,
"seen_count": 22,
"pos_seen": 2,
"pos_updated_ts": 1767931502.1729395,
"room_title_raw_last": "陈三废姐",
"alias_raw": [
"陈三废姐。。",
@@ -1640,16 +1641,16 @@
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 5999.0,
"last_prize_value_yuan": 2999.0,
"max_prize_value_yuan": 5999.0,
"room_title": "陈三废姐"
},
{
"first_seen_ts": 1767856135.4817257,
"last_seen_ts": 1767882434.3949316,
"seen_count": 27,
"pos_seen": 6,
"pos_updated_ts": 1767882434.3949316,
"last_seen_ts": 1767887346.7268648,
"seen_count": 31,
"pos_seen": 9,
"pos_updated_ts": 1767887346.7268648,
"room_title_raw_last": "六号折扣",
"alias_raw": [
"六号折扣"
@@ -1694,10 +1695,10 @@
},
{
"first_seen_ts": 1767858236.204543,
"last_seen_ts": 1767865961.3910372,
"seen_count": 7,
"pos_seen": 6,
"pos_updated_ts": 1767865961.3910372,
"last_seen_ts": 1767939517.6106443,
"seen_count": 8,
"pos_seen": 4,
"pos_updated_ts": 1767939517.6106443,
"room_title_raw_last": "千寻Chihirc",
"alias_raw": [
"千寻Chihirc"
@@ -1775,10 +1776,10 @@
},
{
"first_seen_ts": 1767861173.7718217,
"last_seen_ts": 1767861173.7718217,
"seen_count": 1,
"pos_seen": 4,
"pos_updated_ts": 1767861173.7718217,
"last_seen_ts": 1767936015.7377138,
"seen_count": 2,
"pos_seen": 8,
"pos_updated_ts": 1767936015.7377138,
"room_title_raw_last": "干寻Chihirc",
"alias_raw": [
"干寻Chihirc"
@@ -1839,10 +1840,10 @@
},
{
"first_seen_ts": 1767863974.4459054,
"last_seen_ts": 1767873873.8282998,
"seen_count": 6,
"pos_seen": 8,
"pos_updated_ts": 1767873873.8282998,
"last_seen_ts": 1767941958.2581892,
"seen_count": 30,
"pos_seen": 1,
"pos_updated_ts": 1767941958.2581892,
"room_title_raw_last": "交个朋友。",
"alias_raw": [
"交个朋友",
@@ -1850,16 +1851,16 @@
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 599.0,
"last_prize_value_yuan": 1199.0,
"max_prize_value_yuan": 1199.0,
"room_title": "交个朋友"
},
{
"first_seen_ts": 1767865560.0796092,
"last_seen_ts": 1767865560.0796092,
"seen_count": 1,
"pos_seen": 5,
"pos_updated_ts": 1767865560.0796092,
"last_seen_ts": 1767931863.5214508,
"seen_count": 5,
"pos_seen": 4,
"pos_updated_ts": 1767931863.5214508,
"room_title_raw_last": "义乌奢库",
"alias_raw": [
"义乌奢库"
@@ -1872,10 +1873,10 @@
},
{
"first_seen_ts": 1767866852.0270154,
"last_seen_ts": 1767883417.6456714,
"seen_count": 26,
"last_seen_ts": 1767887072.2406394,
"seen_count": 32,
"pos_seen": 1,
"pos_updated_ts": 1767883417.6456714,
"pos_updated_ts": 1767887072.2406394,
"room_title_raw_last": "琦儿",
"alias_raw": [
"琦儿"
@@ -1904,10 +1905,10 @@
},
{
"first_seen_ts": 1767868287.19223,
"last_seen_ts": 1767868308.9907572,
"seen_count": 2,
"pos_seen": 4,
"pos_updated_ts": 1767868308.9907572,
"last_seen_ts": 1767924951.1152375,
"seen_count": 4,
"pos_seen": 7,
"pos_updated_ts": 1767924951.1152375,
"room_title_raw_last": "交今朋友",
"alias_raw": [
"交今朋友。",
@@ -1915,8 +1916,8 @@
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 1199.0,
"max_prize_value_yuan": 1199.0,
"last_prize_value_yuan": 1599.0,
"max_prize_value_yuan": 1599.0,
"room_title": "交今朋友"
},
{
@@ -1986,10 +1987,10 @@
},
{
"first_seen_ts": 1767879443.0748515,
"last_seen_ts": 1767883444.4458597,
"seen_count": 3,
"pos_seen": 1,
"pos_updated_ts": 1767883444.4458597,
"last_seen_ts": 1767885631.1829498,
"seen_count": 11,
"pos_seen": 2,
"pos_updated_ts": 1767885631.1829498,
"room_title_raw_last": "一枯梅旁",
"alias_raw": [
"一枯梅旁"
@@ -2002,10 +2003,10 @@
},
{
"first_seen_ts": 1767879687.7186654,
"last_seen_ts": 1767881148.3525774,
"seen_count": 3,
"pos_seen": 4,
"pos_updated_ts": 1767881148.3525774,
"last_seen_ts": 1767886820.457326,
"seen_count": 6,
"pos_seen": 1,
"pos_updated_ts": 1767886820.457326,
"room_title_raw_last": "一枯梅雾",
"alias_raw": [
"一枯梅雾"
@@ -2050,10 +2051,10 @@
},
{
"first_seen_ts": 1767881558.8455567,
"last_seen_ts": 1767882476.7702558,
"seen_count": 4,
"pos_seen": 8,
"pos_updated_ts": 1767882476.7702558,
"last_seen_ts": 1767889356.8589709,
"seen_count": 6,
"pos_seen": 1,
"pos_updated_ts": 1767889356.8589709,
"room_title_raw_last": "云舍花卉",
"alias_raw": [
"云舍花卉"
@@ -2066,35 +2067,454 @@
},
{
"first_seen_ts": 1767881878.4492779,
"last_seen_ts": 1767883171.3186133,
"seen_count": 2,
"pos_seen": 4,
"pos_updated_ts": 1767883171.3186133,
"last_seen_ts": 1767887131.9958303,
"seen_count": 4,
"pos_seen": 3,
"pos_updated_ts": 1767887131.9958303,
"room_title_raw_last": "几里与麻",
"alias_raw": [
"几里与麻"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 5999.0,
"last_prize_value_yuan": 35999.0,
"max_prize_value_yuan": 35999.0,
"room_title": "几里与麻"
},
{
"first_seen_ts": 1767882965.3330166,
"last_seen_ts": 1767883129.6050637,
"seen_count": 2,
"pos_seen": 2,
"pos_updated_ts": 1767883129.6050637,
"last_seen_ts": 1767887968.9802105,
"seen_count": 10,
"pos_seen": 5,
"pos_updated_ts": 1767887968.9802105,
"room_title_raw_last": "小肉包",
"alias_raw": [
"小肉包"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 28588.0,
"last_prize_value_yuan": 799.0,
"max_prize_value_yuan": 28588.0,
"room_title": "小肉包"
},
{
"first_seen_ts": 1767883972.404337,
"last_seen_ts": 1767883972.404337,
"seen_count": 1,
"pos_seen": 6,
"pos_updated_ts": 1767883972.404337,
"room_title_raw_last": "作帮数",
"alias_raw": [
"作帮数"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 899.0,
"max_prize_value_yuan": 899.0,
"room_title": "作帮数"
},
{
"first_seen_ts": 1767886163.1418304,
"last_seen_ts": 1767886163.1418304,
"seen_count": 1,
"pos_seen": 17,
"pos_updated_ts": 1767886163.1418304,
"room_title_raw_last": "是6哥啊",
"alias_raw": [
"是6哥啊"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 888.0,
"max_prize_value_yuan": 888.0,
"room_title": "是6哥啊"
},
{
"first_seen_ts": 1767886380.9305952,
"last_seen_ts": 1767886380.9305952,
"seen_count": 1,
"pos_seen": 6,
"pos_updated_ts": 1767886380.9305952,
"room_title_raw_last": "作北帮数",
"alias_raw": [
"作北帮数"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 899.0,
"max_prize_value_yuan": 899.0,
"room_title": "作北帮数"
},
{
"first_seen_ts": 1767886614.7774603,
"last_seen_ts": 1767888647.6708763,
"seen_count": 2,
"pos_seen": 11,
"pos_updated_ts": 1767888647.6708763,
"room_title_raw_last": "蜚旱珠宝",
"alias_raw": [
"蜚旱珠宝"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 1799.0,
"max_prize_value_yuan": 1799.0,
"room_title": "蜚旱珠宝"
},
{
"first_seen_ts": 1767886794.3827543,
"last_seen_ts": 1767887865.3919737,
"seen_count": 2,
"pos_seen": 0,
"pos_updated_ts": 1767887865.3919737,
"room_title_raw_last": "琦儿1",
"alias_raw": [
"琦儿1"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 1699.0,
"max_prize_value_yuan": 1699.0,
"room_title": "琦儿1"
},
{
"first_seen_ts": 1767887995.1220732,
"last_seen_ts": 1767889677.3918233,
"seen_count": 2,
"pos_seen": 4,
"pos_updated_ts": 1767889677.3918233,
"room_title_raw_last": "南畔文具",
"alias_raw": [
"南畔文具"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 1199.0,
"max_prize_value_yuan": 1199.0,
"room_title": "南畔文具"
},
{
"first_seen_ts": 1767888048.111849,
"last_seen_ts": 1767888048.111849,
"seen_count": 1,
"pos_seen": 8,
"pos_updated_ts": 1767888048.111849,
"room_title_raw_last": "作V帮数",
"alias_raw": [
"作V帮数"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 899.0,
"max_prize_value_yuan": 899.0,
"room_title": "作V帮数"
},
{
"first_seen_ts": 1767888234.8877532,
"last_seen_ts": 1767888234.8877532,
"seen_count": 1,
"pos_seen": 6,
"pos_updated_ts": 1767888234.8877532,
"room_title_raw_last": "南畔艾具",
"alias_raw": [
"南畔艾具"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 1199.0,
"max_prize_value_yuan": 1199.0,
"room_title": "南畔艾具"
},
{
"first_seen_ts": 1767890254.9373264,
"last_seen_ts": 1767890852.796311,
"seen_count": 6,
"pos_seen": 15,
"pos_updated_ts": 1767890852.796311,
"room_title_raw_last": "宝丰汝瓷",
"alias_raw": [
"宝丰汝瓷"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 1288.0,
"max_prize_value_yuan": 1288.0,
"room_title": "宝丰汝瓷"
},
{
"first_seen_ts": 1767890267.5130606,
"last_seen_ts": 1767890267.5130606,
"seen_count": 1,
"pos_seen": 8,
"pos_updated_ts": 1767890267.5130606,
"room_title_raw_last": "宅丰汝瓷",
"alias_raw": [
"宅丰汝瓷"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 1288.0,
"max_prize_value_yuan": 1288.0,
"room_title": "宅丰汝瓷"
},
{
"first_seen_ts": 1767923939.705049,
"last_seen_ts": 1767923939.705049,
"seen_count": 1,
"pos_seen": 0,
"pos_updated_ts": 1767923939.705049,
"room_title_raw_last": "潮备老刘1",
"alias_raw": [
"潮备老刘1"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 5999.0,
"max_prize_value_yuan": 5999.0,
"room_title": "潮备老刘1"
},
{
"first_seen_ts": 1767923965.1198587,
"last_seen_ts": 1767923965.1198587,
"seen_count": 1,
"pos_seen": 1,
"pos_updated_ts": 1767923965.1198587,
"room_title_raw_last": "熙坩美",
"alias_raw": [
"熙坩美"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 1199.0,
"max_prize_value_yuan": 1199.0,
"room_title": "熙坩美"
},
{
"first_seen_ts": 1767923989.5428135,
"last_seen_ts": 1767923989.5428135,
"seen_count": 1,
"pos_seen": 2,
"pos_updated_ts": 1767923989.5428135,
"room_title_raw_last": "余爱麟夫。",
"alias_raw": [
"余爱麟夫。"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 6999.0,
"max_prize_value_yuan": 6999.0,
"room_title": "余爱麟夫"
},
{
"first_seen_ts": 1767924145.5320194,
"last_seen_ts": 1767924145.5320194,
"seen_count": 1,
"pos_seen": 4,
"pos_updated_ts": 1767924145.5320194,
"room_title_raw_last": "演员郝平",
"alias_raw": [
"演员郝平"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 1599.0,
"max_prize_value_yuan": 1599.0,
"room_title": "演员郝平"
},
{
"first_seen_ts": 1767924475.3590546,
"last_seen_ts": 1767924475.3590546,
"seen_count": 1,
"pos_seen": 6,
"pos_updated_ts": 1767924475.3590546,
"room_title_raw_last": "陈小四(卷",
"alias_raw": [
"陈小四(卷"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 3699.0,
"max_prize_value_yuan": 3699.0,
"room_title": "陈小四卷"
},
{
"first_seen_ts": 1767924514.7214658,
"last_seen_ts": 1767940263.535722,
"seen_count": 7,
"pos_seen": 1,
"pos_updated_ts": 1767940263.535722,
"room_title_raw_last": "演员朱泳",
"alias_raw": [
"演员朱泳。",
"演员朱泳。。",
"演员朱泳"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 11299.0,
"max_prize_value_yuan": 11299.0,
"room_title": "演员朱泳"
},
{
"first_seen_ts": 1767924845.0501997,
"last_seen_ts": 1767939549.9048152,
"seen_count": 14,
"pos_seen": 5,
"pos_updated_ts": 1767939549.9048152,
"room_title_raw_last": "作业帮教",
"alias_raw": [
"作业帮教"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 899.0,
"max_prize_value_yuan": 899.0,
"room_title": "作业帮教"
},
{
"first_seen_ts": 1767925256.0473683,
"last_seen_ts": 1767929333.5003414,
"seen_count": 2,
"pos_seen": 5,
"pos_updated_ts": 1767929333.5003414,
"room_title_raw_last": "渖员朱泳。",
"alias_raw": [
"渖员朱泳",
"渖员朱泳。"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 11299.0,
"max_prize_value_yuan": 11299.0,
"room_title": "渖员朱泳"
},
{
"first_seen_ts": 1767927105.0172255,
"last_seen_ts": 1767927105.0172255,
"seen_count": 1,
"pos_seen": 13,
"pos_updated_ts": 1767927105.0172255,
"room_title_raw_last": "叶可可.",
"alias_raw": [
"叶可可."
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 2199.0,
"max_prize_value_yuan": 2199.0,
"room_title": "叶可可"
},
{
"first_seen_ts": 1767927142.7995243,
"last_seen_ts": 1767927142.7995243,
"seen_count": 1,
"pos_seen": 0,
"pos_updated_ts": 1767927142.7995243,
"room_title_raw_last": "九乐宦方",
"alias_raw": [
"九乐宦方"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 559.0,
"max_prize_value_yuan": 559.0,
"room_title": "九乐宦方"
},
{
"first_seen_ts": 1767932708.561274,
"last_seen_ts": 1767932708.561274,
"seen_count": 1,
"pos_seen": 1,
"pos_updated_ts": 1767932708.561274,
"room_title_raw_last": "陈亍废姐",
"alias_raw": [
"陈亍废姐"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 2999.0,
"max_prize_value_yuan": 2999.0,
"room_title": "陈亍废姐"
},
{
"first_seen_ts": 1767935424.7581701,
"last_seen_ts": 1767937910.0523136,
"seen_count": 2,
"pos_seen": 6,
"pos_updated_ts": 1767937910.0523136,
"room_title_raw_last": "梁昕(幸",
"alias_raw": [
"梁昕(幸"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 2599.0,
"max_prize_value_yuan": 2599.0,
"room_title": "梁昕幸"
},
{
"first_seen_ts": 1767939762.4964154,
"last_seen_ts": 1767939762.4964154,
"seen_count": 1,
"pos_seen": 0,
"pos_updated_ts": 1767939762.4964154,
"room_title_raw_last": "渑员朱泳。",
"alias_raw": [
"渑员朱泳。"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 11299.0,
"max_prize_value_yuan": 11299.0,
"room_title": "渑员朱泳"
},
{
"first_seen_ts": 1767939973.9032884,
"last_seen_ts": 1767942429.8020463,
"seen_count": 2,
"pos_seen": 1,
"pos_updated_ts": 1767942429.8020463,
"room_title_raw_last": "交个朋友00",
"alias_raw": [
"交个朋友00"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 699.0,
"max_prize_value_yuan": 699.0,
"room_title": "交个朋友00"
},
{
"first_seen_ts": 1767941633.2204504,
"last_seen_ts": 1767941633.2204504,
"seen_count": 1,
"pos_seen": 0,
"pos_updated_ts": 1767941633.2204504,
"room_title_raw_last": "漓员朱泳。",
"alias_raw": [
"漓员朱泳。"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 11299.0,
"max_prize_value_yuan": 11299.0,
"room_title": "漓员朱泳"
},
{
"first_seen_ts": 1767942535.0661564,
"last_seen_ts": 1767942535.0661564,
"seen_count": 1,
"pos_seen": 6,
"pos_updated_ts": 1767942535.0661564,
"room_title_raw_last": "孙钛\"呗",
"alias_raw": [
"孙钛\"呗"
],
"key_kind": "norm",
"last_content": "",
"last_prize_value_yuan": 1199.0,
"max_prize_value_yuan": 1199.0,
"room_title": "孙钛呗"
}
]
}