update:添加人脸比对1:1的接口服务

This commit is contained in:
divenswu 2022-03-17 19:47:36 +08:00
parent e0b34f334a
commit 97dbbf3985

View File

@ -46,6 +46,8 @@ public class Similarity {
distance += temp;
}
distance = Math.sqrt(distance);
}else {
throw new RuntimeException("vector length not equal");
}
return (float) distance;
}