ml4a / ml4a-ofx

A collection of openFrameworks apps for working with machine learning
http://ml4a.github.io
1.22k stars 279 forks source link

OF applications that use ofxFaceTracker2 crash because of the path to the predictor #7

Closed orgicus closed 5 years ago

orgicus commented 7 years ago

To use the ofxFaceTracker 2 examples at the moment I followed these steps:

  1. Downloaded shape_predictor_68_face_landmarks.dat.bz2
  2. Unzipped it to YOUR_OF_FOLDER/addons/ofxFaceTracker2/model

After that ofxFaceTracker2 examples worked.

At the moment, all the examples that have this line:

../../../../data/shape_predictor_68_face_landmarks.dat which should change to this: ../../../data/shape_predictor_68_face_landmarks.dat

Also copy the .dat file to the app's data folder(e.g. FaceClassifier/bin/data).

Another option is to symlink the .dat file.

genekogan commented 7 years ago

we wanted to place all the large data files for ofxFaceTracker2 and ofxCcv so that you could keep them in one place (with respect to ml4a-ofx) instead of copying them into every folder. if you have shape_predictor_68_face_landmarks.dat inside ml4a-ofx/data then the original path (../../../../) should work fine for any app in ml4a-ofx that uses it.