I'm trying to use cv2.groupRectangles to join the bounding boxes proposed by a neural network.
The problem is, for the following bounding boxes, it is returning [[4]] as one of the joined areas.
I expected it to output 4 values. x0, y0, x1, y1
>>> import cv2
>>> aa = [[1050, 0, 1260, 144], [1085, 0, 1295, 144], [1015, 23, 1225, 168], [1050, 23, 1260, 168], [280, 782, 490, 960]]
>>> cv2.groupRectangles(aa, 1, 0.7)
(array([[1050, 12, 1260, 156]], dtype=int32), array([[4]], dtype=int32))
>>>