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