feat: 添加阈值检查脚本,输出默认阈值及匹配结果
refactor: 优化代码格式,调整条件表达式为多行 fix: 更新预定状态,移除已参加的预定
This commit is contained in:
1 parent
804a9224ca
commit
4f0e8c364d
4 files changed
+53
-6
No files matched your search
@@ -0,0 +1,14 @@
|
||||
from douyin.core.douyin_fudai import fudai_analyse
|
||||
from path_config import get_like_template_path, get_fav_template_path
|
||||
|
||||
a = fudai_analyse()
|
||||
print("default threshold", a.yanghao_icon_match_threshold)
|
||||
like_roi = "pic/roi_test_like_20260104000913_1767456556.png"
|
||||
fav_roi = "pic/roi_test_fav_20260104000916_1767456559.png"
|
||||
like_tpl = get_like_template_path()
|
||||
fav_tpl = get_fav_template_path()
|
||||
print("Like match (default):", a._match_icon_template(like_roi, like_tpl))
|
||||
print("Fav match (default):", a._match_icon_template(fav_roi, fav_tpl))
|
||||
a.yanghao_icon_match_threshold = 0.5
|
||||
print("Like match (thr=0.5):", a._match_icon_template(like_roi, like_tpl))
|
||||
print("Fav match (thr=0.5):", a._match_icon_template(fav_roi, fav_tpl))
|
||||
Reference in new issue
Block a user