brew install cmake
yarn install
(this will take some time to compile OpenCV)- Add images to the
images/input
folder yarn start
- Wait for crops to be generated
- Open the
images/index.html
file in a browser.
- Use a 2/3 smallest dimension crop square so the algorithm can move the crop location up and down in the source image
- See about getting face match scores and setting different weights for the face region boosts in the face-detection crop
- See about adjusting the face detection to better match faces. Some obvious faces are not matched and some images that are not faces are matched by mistake. This will require learning more about OpenCV.