Path: blob/master/modules/objdetect/misc/java/test/ObjdetectTest.java
16354 views
package org.opencv.test.objdetect;12import org.opencv.test.OpenCVTestCase;34public class ObjdetectTest extends OpenCVTestCase {56public void testGroupRectanglesListOfRectListOfIntegerInt() {7fail("Not yet implemented");8/*9final int NUM = 10;10MatOfRect rects = new MatOfRect();11rects.alloc(NUM);1213for (int i = 0; i < NUM; i++)14rects.put(i, 0, 10, 10, 20, 20);1516int groupThreshold = 1;17Objdetect.groupRectangles(rects, null, groupThreshold);//TODO: second parameter should not be null18assertEquals(1, rects.total());19*/20}2122public void testGroupRectanglesListOfRectListOfIntegerIntDouble() {23fail("Not yet implemented");24/*25final int NUM = 10;26MatOfRect rects = new MatOfRect();27rects.alloc(NUM);2829for (int i = 0; i < NUM; i++)30rects.put(i, 0, 10, 10, 20, 20);3132for (int i = 0; i < NUM; i++)33rects.put(i, 0, 10, 10, 25, 25);3435int groupThreshold = 1;36double eps = 0.2;37Objdetect.groupRectangles(rects, null, groupThreshold, eps);//TODO: second parameter should not be null38assertEquals(2, rects.size());39*/40}41}424344