Skip to content

Instantly share code, notes, and snippets.

@uupaa
Last active March 28, 2017 08:22
Show Gist options
  • Save uupaa/0fdd26e8d5fe44e4e8a559f8476d13b0 to your computer and use it in GitHub Desktop.
Save uupaa/0fdd26e8d5fe44e4e8a559f8476d13b0 to your computer and use it in GitHub Desktop.
dlib のインストールと動作確認

dlib のインストールと動作確認

dlib を適当な場所(この例では dlib)に展開し、正しく動作するか確認します。

git clone [email protected]:davisking/dlib.git
cd dlib
cd examples
mkdir build
cd build
cmake ..
cmake --build . --config Release

./webcam_face_pose_ex を試してみます。

webcam_face_pose_ex には shape_predictor_68_face_landmarks.dat が必要なので http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2 からダウンロードし build ディレクトリに展開します(100MBほどあります)。

./webcam_face_pose_ex を実行すると、Mac のフロントカメラが起動しリアルタイムの顔認識が始まります。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment