整理项目文件分类

This commit is contained in:
Codex committed 2026-05-20 20:49:19 +08:00
1 parent 38e2b399d4
commit 1fdec7a548
20 files changed
+35 -13

No files matched your search

+14
View File
@@ -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))