ArrayList<Region> detectedFaces = new ArrayList<Region>();
for (int i = 0; i<betaFaces.length; i++){
if (betaFaces[i].getOrigFeatures()[0].getWidth() >= minScanWindowSize && betaFaces[i].getOrigFeatures()[0].getHeight() >= minScanWindowSize)
detectedFaces.add(new Region(
(int) Math.round(betaFaces[i].getOrigFeatures()[0].getX() / scaleFactor),
(int) Math.round(betaFaces[i].getOrigFeatures()[0].getY() / scaleFactor),
(int) Math.round(betaFaces[i].getOrigFeatures()[0].getWidth() / scaleFactor),
(int) Math.round(betaFaces[i].getOrigFeatures()[0].getHeight() / scaleFactor),
betaFaces[i].getOrigFeatures()[0].getAngleDegree(),