Commit a69c5919 authored by Andrey Kamaev's avatar Andrey Kamaev

Fixed Android build.

parent aba20087
...@@ -8,7 +8,8 @@ import org.opencv.test.OpenCVTestCase; ...@@ -8,7 +8,8 @@ import org.opencv.test.OpenCVTestCase;
public class ObjdetectTest extends OpenCVTestCase { public class ObjdetectTest extends OpenCVTestCase {
public void testGroupRectanglesListOfRectInt() { public void testGroupRectanglesListOfRectListOfIntegerInt() {
fail("Not yet implemented");
Rect r = new Rect(10, 10, 20, 20); Rect r = new Rect(10, 10, 20, 20);
ArrayList<Rect> rects = new ArrayList<Rect>(); ArrayList<Rect> rects = new ArrayList<Rect>();
...@@ -16,11 +17,12 @@ public class ObjdetectTest extends OpenCVTestCase { ...@@ -16,11 +17,12 @@ public class ObjdetectTest extends OpenCVTestCase {
rects.add(r); rects.add(r);
int groupThreshold = 1; int groupThreshold = 1;
Objdetect.groupRectangles(rects, groupThreshold); Objdetect.groupRectangles(rects, null, groupThreshold);//TODO: second parameter should not be null
assertEquals(1, rects.size()); assertEquals(1, rects.size());
} }
public void testGroupRectanglesListOfRectIntDouble() { public void testGroupRectanglesListOfRectListOfIntegerIntDouble() {
fail("Not yet implemented");
Rect r1 = new Rect(10, 10, 20, 20); Rect r1 = new Rect(10, 10, 20, 20);
Rect r2 = new Rect(10, 10, 25, 25); Rect r2 = new Rect(10, 10, 25, 25);
ArrayList<Rect> rects = new ArrayList<Rect>(); ArrayList<Rect> rects = new ArrayList<Rect>();
...@@ -32,20 +34,7 @@ public class ObjdetectTest extends OpenCVTestCase { ...@@ -32,20 +34,7 @@ public class ObjdetectTest extends OpenCVTestCase {
int groupThreshold = 1; int groupThreshold = 1;
double eps = 0.2; double eps = 0.2;
Objdetect.groupRectangles(rects, groupThreshold, eps); Objdetect.groupRectangles(rects, null, groupThreshold, eps);//TODO: second parameter should not be null
assertEquals(2, rects.size()); assertEquals(2, rects.size());
} }
public void testGroupRectanglesListOfRectIntDoubleListOfIntegerListOfDouble() {
fail("Not yet implemented");
}
public void testGroupRectanglesListOfRectListOfIntegerInt() {
fail("Not yet implemented");
}
public void testGroupRectanglesListOfRectListOfIntegerIntDouble() {
fail("Not yet implemented");
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment