This commit is contained in:
HuangHai
2026-01-15 21:29:05 +08:00
parent f1bb71b856
commit b740add57e
12 changed files with 34 additions and 42 deletions

View File

@@ -215,6 +215,10 @@ def setup_logger(name, log_file=None, clear_old_log=False):
return logging.getLogger(f"{supplier_code}.{name}")
# 默认使用供应商级别的日志配置
logger = setup_logger("Kit")
def find_template_coords(img_path, template_path, threshold=0.8):
"""
在图片中查找模板并返回中心坐标