优化代码,把算法和业务剥离开来

This commit is contained in:
zqc
2025-12-21 11:43:02 +08:00
parent a2623fd32e
commit 76895da660
3 changed files with 528 additions and 483 deletions

View File

@@ -95,7 +95,7 @@ def process_feature_calculation(feature_id: int) -> bool:
# 提取人脸特征
try:
feature_vector = face_algorithm.extract_face_feature(str(image_path))
feature_vector = face_algorithm.create_business().extract_face_feature(str(image_path))
if feature_vector is not None:
# 转换为二进制数据