{"id":1891,"date":"2015-09-04T13:53:03","date_gmt":"2015-09-04T05:53:03","guid":{"rendered":"http:\/\/blog.hoyo.idv.tw\/?p=1891"},"modified":"2015-09-04T13:53:03","modified_gmt":"2015-09-04T05:53:03","slug":"%e4%ba%ba%e8%87%89%e8%be%a8%e8%ad%98-%e4%bd%bf%e7%94%a8-openbr-%e5%af%a6%e4%bd%9c","status":"publish","type":"post","link":"https:\/\/blog.hoyo.idv.tw\/?p=1891","title":{"rendered":"\u4eba\u81c9\u8fa8\u8b58 - \u4f7f\u7528 OpenBR \u5be6\u4f5c"},"content":{"rendered":"<p><a href=\"http:\/\/openbiometrics.org\/#\">OpenBR<\/a><\/p>\n<p>\u8edf\u9ad4\u5b89\u88dd<\/p>\n<p>\u5b89\u88dd OpenCV<\/p>\n<p>\u53c3\u8003\u00a0<a href=\"https:\/\/github.com\/biometrics\/openbr\/wiki\/Build-OpenCV-with-Video-Support-on-Ubuntu\" target=\"_blank\">Build OpenCV with Video Support on Ubuntu<\/a><\/p>\n<pre class=\"lang:sh decode:true \">$ sudo apt-get update\r\n$ sudo apt-get install build-essential checkinstall libfaac-dev libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev libxfixes-dev libxvidcore-dev texi2html yasm zlib1g-dev libgstreamer0.10-0 libgstreamer0.10-dev gstreamer0.10-tools gstreamer0.10-plugins-base libgstreamer-plugins-base0.10-dev gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad libgtk2.0-0 libgtk2.0-dev libjpeg62 libjpeg62-dev libv4l-dev\r\napt-get install ffmpeg<\/pre>\n<p>&nbsp;<\/p>\n<p>\u5b89\u88dd\u76f8\u4f9d\u8edf\u9ad4<\/p>\n<p>\u53c3\u8003\u00a0<a href=\"http:\/\/openbiometrics.org\/doxygen\/latest\/linux_gcc.html\" target=\"_blank\">Ubuntu 13.04 - GCC 4.7.3 - x64<\/a><\/p>\n<pre class=\"lang:sh decode:true \">$ sudo apt-get update\r\n$ sudo apt-get install build-essential\r\n$ sudo apt-get install cmake cmake-curses-gui<\/pre>\n<p>&nbsp;<\/p>\n<p>\u5b89\u88dd OpenCV 2.4.10<\/p>\n<pre class=\"lang:sh decode:true \">$ cd ~\/Downloads\r\n$ tar -xf opencv-2.4.5.tar.gz\r\n$ cd opencv-2.4.5\r\n$ mkdir build\r\n$ cd build\r\n$ cmake -DCMAKE_BUILD_TYPE=Release ..\r\n$ make -j4\r\n$ sudo make install\r\n$ cd ..\/..\r\n$ rm -rf opencv-2.4.5*<\/pre>\n<p>&nbsp;<\/p>\n<p>Install Qt 5.0.1<\/p>\n<pre class=\"lang:sh decode:true\">$ sudo apt-get install qt5-default libqt5svg5-dev qtcreator<\/pre>\n<p>&nbsp;<\/p>\n<p>\u5f9e Github \u53d6\u5f97 OpenBR<\/p>\n<pre class=\"lang:sh decode:true \">$ git clone https:\/\/github.com\/biometrics\/openbr.git\r\n$ cd openbr$ git checkout 0.5\r\n$ git submodule init\r\n$ git submodule update<\/pre>\n<p>&nbsp;<\/p>\n<p>\u5b89\u88dd OpenBR<\/p>\n<pre class=\"lang:sh decode:true \">$ mkdir build\r\n$ cd build$ cmake -DCMAKE_BUILD_TYPE=Release ..\r\n$ make -j4\r\n$ sudo make install<\/pre>\n<p>&nbsp;<\/p>\n<p>\u57fa\u672c\u6307\u4ee4<\/p>\n<pre class=\"lang:default decode:true\">br -algorithm FaceDetection -enrollAll -enroll M5.jpg\r\nbr -gui -algorithm ShowFaceDetection -enrollAll -enroll M5.jpg\r\nbr -algorithm FaceRecognition -compare M1.jpg .\/<\/pre>\n<p>&nbsp;<\/p>\n<p>algorithm \u9078\u9805<\/p>\n<ul>\n<li>FaceDetection \uff1a\u751f\u7269\u7279\u5fb5<\/li>\n<li>FaceRecognition \uff1a\u7279\u5fb5\u6bd4\u5c0d<\/li>\n<li>ShowFaceDetection \uff1a\u986f\u793a\u4eba\u81c9\uff0c\u5fc5\u9808\u642d\u914d -gui \u53c3\u6578<\/li>\n<li>AgeEstimation \uff1a\u5e74\u9f61<\/li>\n<li>GenderEstimation \uff1a\u6027\u5225<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>--<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p class=\"pvc_stats all \" data-element-id=\"1891\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> &nbsp;2,639&nbsp;total views, &nbsp;1&nbsp;views today<\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>OpenBR \u8edf\u9ad4\u5b89\u88dd \u5b89\u88dd ...<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p class=\"pvc_stats all \" data-element-id=\"1891\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> &nbsp;2,639&nbsp;total views, &nbsp;1&nbsp;views today<\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[31],"tags":[175,176,174],"_links":{"self":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/1891"}],"collection":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1891"}],"version-history":[{"count":17,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/1891\/revisions"}],"predecessor-version":[{"id":2493,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/1891\/revisions\/2493"}],"wp:attachment":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}