Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Tetragramm
GitHub Repository: Tetragramm/opencv
Path: blob/master/modules/objdetect/misc/java/test/ObjdetectTest.java
16354 views
1
package org.opencv.test.objdetect;
2
3
import org.opencv.test.OpenCVTestCase;
4
5
public class ObjdetectTest extends OpenCVTestCase {
6
7
public void testGroupRectanglesListOfRectListOfIntegerInt() {
8
fail("Not yet implemented");
9
/*
10
final int NUM = 10;
11
MatOfRect rects = new MatOfRect();
12
rects.alloc(NUM);
13
14
for (int i = 0; i < NUM; i++)
15
rects.put(i, 0, 10, 10, 20, 20);
16
17
int groupThreshold = 1;
18
Objdetect.groupRectangles(rects, null, groupThreshold);//TODO: second parameter should not be null
19
assertEquals(1, rects.total());
20
*/
21
}
22
23
public void testGroupRectanglesListOfRectListOfIntegerIntDouble() {
24
fail("Not yet implemented");
25
/*
26
final int NUM = 10;
27
MatOfRect rects = new MatOfRect();
28
rects.alloc(NUM);
29
30
for (int i = 0; i < NUM; i++)
31
rects.put(i, 0, 10, 10, 20, 20);
32
33
for (int i = 0; i < NUM; i++)
34
rects.put(i, 0, 10, 10, 25, 25);
35
36
int groupThreshold = 1;
37
double eps = 0.2;
38
Objdetect.groupRectangles(rects, null, groupThreshold, eps);//TODO: second parameter should not be null
39
assertEquals(2, rects.size());
40
*/
41
}
42
}
43
44