001 002// 003// This file is auto-generated. Please don't modify it! 004// 005package org.opencv.objdetect; 006 007import java.util.ArrayList; 008import org.opencv.core.Mat; 009import org.opencv.core.MatOfInt; 010import org.opencv.core.MatOfRect; 011 012public class Objdetect { 013 014 public static final int 015 CASCADE_DO_CANNY_PRUNING = 1, 016 CASCADE_SCALE_IMAGE = 2, 017 CASCADE_FIND_BIGGEST_OBJECT = 4, 018 CASCADE_DO_ROUGH_SEARCH = 8; 019 020 021 // 022 // C++: void groupRectangles(vector_Rect& rectList, vector_int& weights, int groupThreshold, double eps = 0.2) 023 // 024 025 //javadoc: groupRectangles(rectList, weights, groupThreshold, eps) 026 public static void groupRectangles(MatOfRect rectList, MatOfInt weights, int groupThreshold, double eps) 027 { 028 Mat rectList_mat = rectList; 029 Mat weights_mat = weights; 030 groupRectangles_0(rectList_mat.nativeObj, weights_mat.nativeObj, groupThreshold, eps); 031 032 return; 033 } 034 035 //javadoc: groupRectangles(rectList, weights, groupThreshold) 036 public static void groupRectangles(MatOfRect rectList, MatOfInt weights, int groupThreshold) 037 { 038 Mat rectList_mat = rectList; 039 Mat weights_mat = weights; 040 groupRectangles_1(rectList_mat.nativeObj, weights_mat.nativeObj, groupThreshold); 041 042 return; 043 } 044 045 046 047 048 // C++: void groupRectangles(vector_Rect& rectList, vector_int& weights, int groupThreshold, double eps = 0.2) 049 private static native void groupRectangles_0(long rectList_mat_nativeObj, long weights_mat_nativeObj, int groupThreshold, double eps); 050 private static native void groupRectangles_1(long rectList_mat_nativeObj, long weights_mat_nativeObj, int groupThreshold); 051 052}