static L openImajToRects(Collection l) { ret map(l, func(org.openimaj.math.geometry.shape.Rectangle r) -> Rect { Rect(toInt(r.x), toInt(r.y), toInt(r.width), toInt(r.height)) }); }