Openbr is a great project for facial detecting.

System: linuxmint 13 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 is for ubuntu13.04 due to that lib/package ""

The reason the OpenBR build instructions use Ubuntu 13.04 is because (I believe) the qt5-default aptitude package is not available 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 linux.

Here is 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 you ought to compile that 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, you ought to have qt5 cmake files first.

www.qt-project.org    has 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/CMake
cd CMake
./configure --prefix=/usr/local
make
make install
ldconfig

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.run
chmod +x qt-opensource-linux-x64-5.3..run
sudo ./qt-opensource-linux-x64-5.3..run # Then a wizard window would jump out, install it as you wish .
# By default a /opt/Qt5.3.2/ will be the default directory

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 type
make[5]: *** [stasm/CMakeFiles/stasm.dir/stasm/src/stasm_lib.cpp.o] Error 1
make[4]: *** [stasm/CMakeFiles/stasm.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [stasm/src/external_stasm-stamp/external_stasm-build] Error 2
make[1]: *** [openbr/CMakeFiles/external_stasm.dir/all] Error 2
make: *** [all] Error 2

"

. so we need opencv 2.4.9 . Here its download link http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.9/opencv-2.4.9.zip/download)

unzip opencv-2.4.9.zip -d /usr/local/src # or the path you store source files
cd /usr/local/src/opencv-2.4.9/
# Then use 'cmake' to compile opencv sources
mkdir release
cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
# # Notice when building, cmake would look for some 3rdparty modules from internet. If you see something "-- ICV: Downloading ippicv_linux_20141027.tgz... " , do not be panic, take your time. A cup of coffee is calling you :)
sudo make
sudo make install

Step 4. building openbr

 ( with the support of fresh new 'cmake', cross-platform 'qt5', marvellous 'opencv' )

git clone https://github.com/biometrics/openbr.git
cd openbr
git checkout master # Or here git checkout 0.5 ## coz some times master changes a lot LOL
git submodule init
git submodule update # It will cost your minutes to download those sub-modules. Take that easy. # Then, try to build the openbr
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 that 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 Qt Creator here http://qt-project.org/doc/qtcreator if you need.

"

Here is what I got after compiling:

Then you can find more 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!!!]的更多相关文章

  1. VPN pptp on linuxmint13/ubuntu12.04/debian VPS

    VPN is a great thing when you are forced to be stuck somewhere. on ubuntu, you need to check out whe ...

  2. iphone/ipad/iOS on Linux Debian7/ubuntu12.04/linuxmint13/ubuntu14.04 compiling from source

    The packages we need for ubuntu12.04 and its derived destros are: libimobiledevices, libplist, libus ...

  3. openssh6.7.deb download packed for debian7/ubuntu12.04 amd64

    openssh the openssh-server on debian7/ubuntu12.04 is too old and out of date. so now we replace and ...

  4. ubuntu12.04下同步cm10源码(个人记录,当作笔记)

    环境:AMD N850,4G,ubuntu12.04 x64, 老规矩,先是各种依赖: sudo apt-get install git-core gnupg flex bison python ra ...

  5. mono3.2和monodevelop4.0在ubuntu12.04上两天的苦战

    首先第一步是设置ubuntu server 12.04版更新源,推荐中科大的比较快:deb http://debian.ustc.edu.cn/ubuntu/ precise main multive ...

  6. Win7&Ubuntu12.04 双系统引导问题

    周末的时候手贱,重装系统,导致原来的ubuntu12.04和win7双系统的引导不见了,所以在此进行一下说明,如何修复. 1. win7和ubuntu12.04双系统引导修复 问题描述:    在重装 ...

  7. ubuntu12.04 安装CS:APP Y86模拟器

    下的第一UBUNTU12.04下Y86模拟器的安装:(參考http://archive.cnblogs.com/a/1865627/ 作适当改动) 1.安装bison和flex词法分析工具 sudo ...

  8. RP4412开发板烧写Ubuntu12.04失败原因分析解决

    Ubuntu烧写失败可能是卡的问题 问:用RP4412开发板,卡烧了光盘中的fastboot失败,现在如何补救呢? 答:INAND格式化,利用usb来升级啊. 也有文档,看升级文档. 问:这个是怎么回 ...

  9. ubuntu12.04+Elasticsearch2.3.3伪分布式配置,集群状态分片调整

    目录 [TOC] 1.什么是Elashticsearch 1.1 Elashticsearch介绍 Elasticsearch是一个基于Apache Lucene(TM)的开源搜索引擎.能够快速搜索数 ...

随机推荐

  1. .NET:从 Mono、.NET Core 说起

    魅力 .NET:从 Mono..NET Core 说起 前段时间,被问了这样一个问题:.NET 应用程序是怎么运行的? 当时大概愣了好久,好像也没说出个所以然,得到的回复是:这是 .NET 程序员最基 ...

  2. javascript 控制台输出 图片 console.log 真强大 真佩服你们的创造力

    无意中,在百度知道页面发现了这货.居然能输出图片到控制台. 完全颠覆自己的三观,果断查阅其输出方法.后得知,原来如此. 曾经做过的项目中,同事把控制台做成一个网页形式方便远程控制和远程调用.没想到过这 ...

  3. window批量-6 rem

    行动: 凝视命令,加大对批量处理相应的描述性信息 格公式: rem [comment] demo: bat @echo off pause rem 这是对pause的解释 echo xxx pause ...

  4. ArrayList/List 泛型集合

    List泛型集合 集合是OOP中的一个重要概念,C#中对集合的全面支持更是该语言的精华之一. 为什么要用泛型集合? 在C# 2.0之前,主要可以通过两种方式实现集合: a.使用ArrayList 直接 ...

  5. JQuery -> 超级简单的下拉菜单

    使用jquery实现一个超级简单的下拉菜单. 效果图 最初的效果 watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvRmVlTGFuZw==/font/5a6L ...

  6. WindowsService开发遇到的问题

    1.Windows服务安装 通过cmd运行指令安装Windows服务: 安装方法:运行cmd,以InstallUtil.exe 来运行 Windows服务程序. 如果是Release模式的话,直接在c ...

  7. js根据IP地址判断城市

    var province = '' ;var city = '' ;jQuery.getScript("http://int.dpool.sina.com.cn/iplookup/iploo ...

  8. ps入门教程:选择工具、移动工具、索套工具的使用

    本节课程主要内容:1.学习矩形选择工具.椭圆选择工具.移动工具.多边形套索工具.套索工具.磁性套索工具和魔术 棒选择工具.2.用套索和磁性套索,实现对人物照片的抠图.----------------- ...

  9. NHibernate:教你如何搭建数据访问层?

    NHibernate:教你如何搭建数据访问层? 什么是NHibernate NHibernate 是一个基于.net 的针对关系型数据库的对象持久化类库.NHibernate 来源于非常优秀的基于Ja ...

  10. angularjs + seajs构建Web Form3

    angularjs + seajs构建Web Form前端(三) -- 兼容easyui 回顾 在上一章中使用了angular实现了ajax form和树形结构,经过以上两章对于angular的大致使 ...