Skip to content

Mac/unix build scripts and command utility for stasm 4.1

febman/stasm_build

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STASM 4 build scripts

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.

Build Instructions

  1. Download STASM source code from: http://www.milbo.users.sonic.net/stasm/download.html (Tested on Version 4.1.0)
  2. Extract zip file to the folder stasm4.1.0
  3. 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

Test stasm command utility

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

License

BSD-2

About

Mac/unix build scripts and command utility for stasm 4.1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CMake 61.4%
  • C++ 38.6%