mirror of
https://gitee.com/open-visual/face-search.git
synced 2025-07-25 19:41:42 +08:00
update:修改测试用例
This commit is contained in:
parent
924e55fd52
commit
7d433fc2f0
@ -24,6 +24,22 @@ public class ArrayUtil {
|
||||
return output;
|
||||
}
|
||||
|
||||
public static float[] division(float[] input, float division){
|
||||
float[] output = new float[input.length];
|
||||
for(int i=0; i< input.length; i++){
|
||||
output[i] = input[i] / division;
|
||||
}
|
||||
return output;
|
||||
}
|
||||
|
||||
public static double matrixNorm(float[] matrix){
|
||||
return matrixNorm(new double[][]{floatToDouble(matrix)});
|
||||
}
|
||||
|
||||
public static double matrixNorm(double[] matrix){
|
||||
return matrixNorm(new double[][]{matrix});
|
||||
}
|
||||
|
||||
public static double matrixNorm(double[][] matrix){
|
||||
double sum=0.0;
|
||||
for(double[] temp1:matrix){
|
||||
|
@ -9,7 +9,6 @@ import com.visual.face.search.core.extract.FaceFeatureExtractor;
|
||||
import com.visual.face.search.core.extract.FaceFeatureExtractorImpl;
|
||||
import com.visual.face.search.core.models.*;
|
||||
import com.visual.face.search.core.test.base.BaseTest;
|
||||
import com.visual.face.search.core.utils.CropUtil;
|
||||
import org.opencv.core.Mat;
|
||||
import org.opencv.core.Point;
|
||||
import org.opencv.core.Scalar;
|
||||
@ -31,7 +30,7 @@ public class FaceFeatureExtractTest extends BaseTest {
|
||||
private static String modelArrPath = "face-search-core/src/main/resources/model/onnx/attribute_gender_age/insight_gender_age.onnx";
|
||||
|
||||
// private static String imagePath = "face-search-core/src/test/resources/images/faces";
|
||||
private static String imagePath = "/Users/diven/workspace/python/kuainiu/beidou-spoofing/test/datas/eval_liveness_v1/real";
|
||||
private static String imagePath = "face-search-core/src/test/resources/images/faces/debug/debug_0001.jpg";
|
||||
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user