- opencv2
- vtk
- hdf5
pacman -S opencv vtk hdf5
cmake -B build -DCMAKE_BUILD_TYPE=Release .
cmake --build build/
Get a training dataset. You can download either
- https://ibug.doc.ic.ac.uk/download/annotations/ibug.zip
- https://ibug.doc.ic.ac.uk/download/annotations/helen.zip
Make indexes to the dataset (why isn't this built in?) (if you're using ibug, subsitute ibug/ for helen/trainset):
find helen/trainset/ -name "*.jpg" | tee helen/trainset/images.txt
find helen/trainset/ -name "*.pts" | tee helen/trainset/annotations.txt
Train the model:
./build/FacemarkTrain train helen/trainset src/models/facemark/model.yaml
Test the model:
./build/FacemarkTrain test src/models/facemark/model.yaml helen/testset/3023909862_1.jpg
Interact with the model:
./build/FacemarkTrain track src/models/facemark/model.yaml
...
...