openbr on linuxmint13/ubuntu12.04/debian7 x64 facial recognition [Compile from source!!!]
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!!!]的更多相关文章
- 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 ...
- 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 ...
- 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 ...
- ubuntu12.04下同步cm10源码(个人记录,当作笔记)
环境:AMD N850,4G,ubuntu12.04 x64, 老规矩,先是各种依赖: sudo apt-get install git-core gnupg flex bison python ra ...
- mono3.2和monodevelop4.0在ubuntu12.04上两天的苦战
首先第一步是设置ubuntu server 12.04版更新源,推荐中科大的比较快:deb http://debian.ustc.edu.cn/ubuntu/ precise main multive ...
- Win7&Ubuntu12.04 双系统引导问题
周末的时候手贱,重装系统,导致原来的ubuntu12.04和win7双系统的引导不见了,所以在此进行一下说明,如何修复. 1. win7和ubuntu12.04双系统引导修复 问题描述: 在重装 ...
- ubuntu12.04 安装CS:APP Y86模拟器
下的第一UBUNTU12.04下Y86模拟器的安装:(參考http://archive.cnblogs.com/a/1865627/ 作适当改动) 1.安装bison和flex词法分析工具 sudo ...
- RP4412开发板烧写Ubuntu12.04失败原因分析解决
Ubuntu烧写失败可能是卡的问题 问:用RP4412开发板,卡烧了光盘中的fastboot失败,现在如何补救呢? 答:INAND格式化,利用usb来升级啊. 也有文档,看升级文档. 问:这个是怎么回 ...
- ubuntu12.04+Elasticsearch2.3.3伪分布式配置,集群状态分片调整
目录 [TOC] 1.什么是Elashticsearch 1.1 Elashticsearch介绍 Elasticsearch是一个基于Apache Lucene(TM)的开源搜索引擎.能够快速搜索数 ...
随机推荐
- 类的构造函数 this 关键字
今天研究了一下mvc 的绑定脚本,绑定样式类. 看了下源码,里面有一个 构造函数里面 有一个 this 关键字.我想,怎么我的项目没有用到呢. 于是做了一个例子示范了一下. using System; ...
- CentOS采用grub进 single状态
当系统文件错误,有可能无法进入系统.或者您忘记了原来的系统password. 用这种方法可以,进single状态,编辑系统启动文件或更改的错误password. 1.重新启动系统. 2.按" ...
- 健身小管家--android app源码
把做了近一个月的android程序源码放出来,里面包括但不限于如下内容: 1. 简单的android项目结构 2. 通用的adapter,不再为每一个ListView都写一个adapter,只要用此一 ...
- 使用flex和bison实现的sql引擎解析
因为老师要求,近期在做oceanbase存储过程的实现,在oceanbase 0.4曾经是不支持存储过程的.实现的主要步骤主要包含 1.语法解析 2.词法解析 3.详细运行语法树的步骤 如今先来说说语 ...
- [Openstack] Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL]
直接使用devstack在ubuntu14.04单个节点的建筑openstack 使用keystone查询租户和用户始终报告时,这个错误! 主要看下这些配置是否正确.我们将能够解决这个问题 opens ...
- leetcode先刷_Unique Binary Search Trees II
可能没想到,人的简单方法,关于质询的问题提出做. 如何把产生出来的所有的树木?所使用的方法当然是递归,但是有一个致命的问题,假设根节点,然后做一个递归,所以这是非常多的公共树木的根,结果肯定是一团糟. ...
- Pointers to classes (From the note of my firend)
Pointers to classes Objects can also be pointed to by pointers: Once declared, a class becomes a ...
- SQL点滴15—在SQL Server 2008中调用C#程序
原文:SQL点滴15-在SQL Server 2008中调用C#程序 T-SQL的在执行普通的查询的时候是很高效的,但是在执行循环,判断这样的语句的时候效率就不那么的高了.这时可以借助CLR了,我们可 ...
- 解决Ubuntu Adobe Reader 菜单栏空白
sudo gedit /usr/local/share/applications/AdobeReader.desktop将 ”Exec=acroread“ 用 ”Exec=env UBUNTU_ME ...
- [译]Java 设计模式之外观
(文章翻译自Java Design Pattern: Facade) 外观设计模式隐藏了任务的复杂性而只是提供了一个简单的接口.一个非常好的例子就是计算机的启动.当一个计算机启动的时候,它涉及CUP. ...