code: function getFacesFromLocations(img, rects, faceSize = 150) {
        const shapes = rects.map(rect => faceLandmarkPredictor.predict(img, rect))
        return fr.extractImageChips(img, fr.getFaceChipDetails(shapes, faceSize))
      }
docs: /* extract the faces from an image for given face rectangles