Fix build of Java tests
This commit is contained in:
parent
f4e27bcbbc
commit
2e02654004
@ -13,8 +13,6 @@ import org.opencv.features2d.KeyPoint;
|
|||||||
import org.opencv.test.OpenCVTestCase;
|
import org.opencv.test.OpenCVTestCase;
|
||||||
import org.opencv.test.OpenCVTestRunner;
|
import org.opencv.test.OpenCVTestRunner;
|
||||||
|
|
||||||
import android.util.Log;
|
|
||||||
|
|
||||||
public class FASTFeatureDetectorTest extends OpenCVTestCase {
|
public class FASTFeatureDetectorTest extends OpenCVTestCase {
|
||||||
|
|
||||||
FeatureDetector detector;
|
FeatureDetector detector;
|
||||||
@ -129,7 +127,7 @@ public class FASTFeatureDetectorTest extends OpenCVTestCase {
|
|||||||
|
|
||||||
String truth = "<?xml version=\"1.0\"?>\n<opencv_storage>\n<name>Feature2D.FAST</name>\n<nonmaxSuppression>1</nonmaxSuppression>\n<threshold>10</threshold>\n<type>2</type>\n</opencv_storage>\n";
|
String truth = "<?xml version=\"1.0\"?>\n<opencv_storage>\n<name>Feature2D.FAST</name>\n<nonmaxSuppression>1</nonmaxSuppression>\n<threshold>10</threshold>\n<type>2</type>\n</opencv_storage>\n";
|
||||||
String data = readFile(filename);
|
String data = readFile(filename);
|
||||||
Log.d("qqq", "\"" + data + "\"");
|
//Log.d("qqq", "\"" + data + "\"");
|
||||||
assertEquals(truth, data);
|
assertEquals(truth, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -141,7 +139,7 @@ public class FASTFeatureDetectorTest extends OpenCVTestCase {
|
|||||||
String truth = "%YAML:1.0\nname: \"Feature2D.FAST\"\nnonmaxSuppression: 1\nthreshold: 10\ntype: 2\n";
|
String truth = "%YAML:1.0\nname: \"Feature2D.FAST\"\nnonmaxSuppression: 1\nthreshold: 10\ntype: 2\n";
|
||||||
String data = readFile(filename);
|
String data = readFile(filename);
|
||||||
|
|
||||||
Log.d("qqq", "\"" + data + "\"");
|
//Log.d("qqq", "\"" + data + "\"");
|
||||||
assertEquals(truth, data);
|
assertEquals(truth, data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user