优化代码,把算法和业务剥离开来
This commit is contained in:
@@ -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:
|
||||
# 转换为二进制数据
|
||||
|
||||
Reference in New Issue
Block a user