This is a fork from https://github.com/juan-cardelino/stasm to include a command line utility and a straightforward set of build instructions for mac/unix.
Stasm is a C++ library for finding key facial features (BSD licensed). OpenCV is required.
Build scripts to compile the STASM library (version 4 and later):
- CMakeLists.txt: cmake build script to compile the STASM library and its examples
- STASMConfig.cmake.in: template to generate a STASMConfig.cmake which could be useful to use STASM as a library from another project
- *.cpp.diff: patches to correct some compilation errors in unix.
- Download STASM source code from: http://www.milbo.users.sonic.net/stasm/download.html (Tested on Version 4.1.0)
- Extract zip file to the folder
stasm4.1.0 - Now run these steps in order:
$ cd stasm4.1.0
$ git clone https://github.com/alyssaq/stasm_build.git
$ patch apps/appmisc.cpp < stasm_build/patches/appmisc.cpp.20140201.diff
$ patch apps/shapefile/shapefile.cpp < stasm_build/patches/shapefile.cpp.20140201.diff
$ rm -r stasm_build/patches
$ cp stasm_build/* .
$ mkdir build && cd build
$ cmake ../
$ make
If all the build steps went well, there will be an executable called stasm_util in the build folder.
To run:
$ ./build/stasm_util -f data data/testface.jpg
To show face points on image:
$ ./build/stasm_util -s -f data data/testface.jpg
BSD-2