drawBoxes

fun drawBoxes(boxesColorsMap: Map<Array<IntArray>, Int>)

Draws a set of quadrilateral shapes on the camera preview scaling the points to the area without black bars.

Parameters

boxesColorsMap

A mapping of boxes to colors in which each box is a 2d int array where each sub array contains the X,Y coordinates of a corner.