mirror of
https://gitee.com/open-visual/face-search.git
synced 2025-07-25 19:41:42 +08:00
update:添加人脸比对1:1的接口服务
This commit is contained in:
parent
e0b34f334a
commit
97dbbf3985
@ -46,6 +46,8 @@ public class Similarity {
|
|||||||
distance += temp;
|
distance += temp;
|
||||||
}
|
}
|
||||||
distance = Math.sqrt(distance);
|
distance = Math.sqrt(distance);
|
||||||
|
}else {
|
||||||
|
throw new RuntimeException("vector length not equal");
|
||||||
}
|
}
|
||||||
return (float) distance;
|
return (float) distance;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user