rect2square

plugins.extract.detect.mtcnn.rect2square(rectangles: ndarray) ndarray

change rectangles into squares (matrix version)

Parameters:

rectangles (ndarray) – [b, x, y, x1, y1] rectangles

Return type:

Original rectangle changed to a square