Table of Contents

Method GroupRectangles

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

GroupRectangles(out Rect[], out double[], int, double)

Groups the object candidate rectangles.

public void GroupRectangles(out Rect[] rectList, out double[] weights, int groupThreshold, double eps)

Parameters

rectList Rect[]

Input/output vector of rectangles. Output vector includes retained and grouped rectangles. (The Python list is not modified in place.)

weights double[]

Input/output vector of weights of rectangles. Output vector includes weights of retained and grouped rectangles. (The Python list is not modified in place.)

groupThreshold int

Minimum possible number of rectangles minus 1. The threshold is used in a group of rectangles to retain it.

eps double

Relative difference between sides of the rectangles to merge them into a group.