Objdetect.java
1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//
// This file is auto-generated. Please don't modify it!
//
package org.opencv.objdetect;
import java.util.ArrayList;
import java.util.List;
import org.opencv.core.Mat;
import org.opencv.core.MatOfInt;
import org.opencv.core.MatOfRect;
import org.opencv.utils.Converters;
// C++: class Objdetect
//javadoc: Objdetect
public class Objdetect {
public static final int
CASCADE_DO_CANNY_PRUNING = 1,
CASCADE_SCALE_IMAGE = 2,
CASCADE_FIND_BIGGEST_OBJECT = 4,
CASCADE_DO_ROUGH_SEARCH = 8;
//
// C++: void groupRectangles(vector_Rect& rectList, vector_int& weights, int groupThreshold, double eps = 0.2)
//
//javadoc: groupRectangles(rectList, weights, groupThreshold, eps)
public static void groupRectangles(MatOfRect rectList, MatOfInt weights, int groupThreshold, double eps)
{
Mat rectList_mat = rectList;
Mat weights_mat = weights;
groupRectangles_0(rectList_mat.nativeObj, weights_mat.nativeObj, groupThreshold, eps);
return;
}
//javadoc: groupRectangles(rectList, weights, groupThreshold)
public static void groupRectangles(MatOfRect rectList, MatOfInt weights, int groupThreshold)
{
Mat rectList_mat = rectList;
Mat weights_mat = weights;
groupRectangles_1(rectList_mat.nativeObj, weights_mat.nativeObj, groupThreshold);
return;
}
// C++: void groupRectangles(vector_Rect& rectList, vector_int& weights, int groupThreshold, double eps = 0.2)
private static native void groupRectangles_0(long rectList_mat_nativeObj, long weights_mat_nativeObj, int groupThreshold, double eps);
private static native void groupRectangles_1(long rectList_mat_nativeObj, long weights_mat_nativeObj, int groupThreshold);
}