use boofcv to detect polygons