OPENBR is a great project for facial detecting.
System:linuxmint x86_64
Face recognition, motion/gender/age/detection
Here it ' s website:http://www.openbiometrics.org/
It ' s GitHub page: HTTPS://GITHUB.COM/BIOMETRICS/OPENBR
Awareness
Just need to try those cool stuff here:
The Installation tutorial
Http://openbiometrics.org/doxygen/latest/installation.html
But the tutorial above was for ubuntu13.04 due to that Lib/package ""
The reason the OPENBR build instructions use Ubuntu 13.04 are because (I believe) The Qt5-default aptitude package are not a vailable on 12.04.
"' Jklontz mentioned here:http://www.linuxquestions.org/questions/linux-software-2/ compiling-openbr-cmake-error-4175469037/
As what Jklontz said, we would try to follow the tutorial for Mac OSX, learn the lesson there and then deploy OPENBR on L Inux.
Here's the link of a installation for MAC OS X. http://openbiometrics.org/doxygen/latest/osx_clang.html
Conclusion:you would need to install/possess many libs/packages before compiling OPENBR on your computer.Materials:1. CMake (version upper than 2.8.11)
notice:ubuntu12.04 doesn ' t provide cmake upper than that version. So, ought to compile the from source.
2. QT5 (version upper than 5.0)
notice:ubuntu12.04 doesn ' t provide "qt-*" packages neither. So if you want to build OPENBR and you ought to the Qt5 cmake files first.
Www.qt-project.org have the things you can download.
3. OpenCV source files and Libs
Let's compile and deploy them all:)
Step 1. Compiling CMake
git clone https://github.com/kitware/cmakecd CMake. /configure--prefix=/usr/Localmake doinstallldconfig
Step 2. Installing QT5
wget -C http://download.qt-project.org/official_releases/qt/5.3/5.3.2/ Qt-opensource-linux-x64-5.3.2.runchmod +x qt-opensource-linux-x64-5.3. 2 . Run sudo ./qt-opensource-linux-x64-5.3. 2 Install
Step 3. Building OPENCV
(Notice OpenCV 3.0+ doesn ' t work with OPENBR 0.5 or previous releases. OPENBR would detect error if OPENCV is 3.0+ when compiling OPENBR "
In file included from/usr/local/src/openbr/build/stasm/src/external_stasm/stasm/stasm/src/stasm_lib.cpp:7:0:/usr/ Local/src/openbr/build/stasm/src/external_stasm/stasm/stasm/include/misc.h:422:1: Error: ' CvScalar ' does not name a TYPEMAKE[5]: * * * [STASM/CMAKEFILES/STASM.DIR/STASM/SRC/STASM_LIB.CPP.O] Error 1make[4]: * * * [stasm/cmakefiles/ Stasm.dir/all] Error 2MAKE[3]: * * [ALL] Error 2make[2]: * * * [stasm/src/external_stasm-stamp/external_stasm-build] Error 2MAKE[1]: * * * [Openbr/cmakefiles/external_stasm.dir/all] Error 2make: * * * [ALL] Error 2
"
. So we need OpenCV 2.4.9. Here it download link http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.9/opencv-2.4.9.zip/download)
UnzipOpencv-2. 4.9.Zip-d/usr/local/src# or the path you store source FILESCD/usr/local/src/opencv-2.4.9/# then use'CMake'To compile OpenCV sourcesmkdirRELEASECD Releasecmake-D cmake_build_type=release-d cmake_install_prefix=/usr/Local.. # # Notice When building, CMake would look forSome 3rdparty modules from the Internet. If you see something"--icv:downloading ippicv_linux_20141027.tgz ...", DoNot being panic, take your Time. A Cup OF coffee is calling you:)
sudo make
sudo make install
Step 4. Building OPENBR
(with the fresh new ' cmake ', Cross-platform ' qt5 ', Marvellous ' OpenCV ')
git clone https://github.com/biometrics/openbr.gitCD openbrgit Checkout Master # Or here git Checkout 0.5 # coz some times master changes a lot lolgit submodule initgit submodule update# It'll cost your minut Es to download those sub-
sudo cmake-dcmake_prefix_path=/opt/qt5.3.2/5.3/gcc_64-dopencv_dir=/usr/local/src/opencv-2.4.9/release-dcmake_ Build_type=release.
sudo make J4
sudo make install
Step 5. Building the OPENBR GUI
Just as what refers:
"
Hack openbr! Open Qt Creator ide$ qtcreator &from the qt Creator "File" menu select "Open File or Project ...". Select "Openbr/cmakelists.txt" then "Open". Browse to your pre-existing build directory "Openbr/build" then select "Next". Select "Run CMake" then "Finish". You ' re all set! You can find more information on the Qt Creator here Http://qt-project.org/doc/qtcreator if you need.
"
Here's what I got after compiling:
Then you can find more of you ' d like
Step More ...
Hack on the way!
Like these:
"
(Optional) Test openbr! $ cd openbr/scripts$./downloaddatasets.sh$ CD. /build$ make Test
(Optional) package openbr! $ cd openbr/build$ sudo cpack-g TGZ
(Optional) Build OPENBR documentation! $ sudo apt-get install doxygen$ CD openbr/build$ Cmake-dbr_build_documentation=on. $ make-j4$ sudo apt-get install libgnome2-bin$ gnome-open html/index.html
"
Happy hacking!
OPENBR on Linuxmint13/ubuntu12.04/debian7 x64 facial recognition [Compile from Source!!!]