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