Package Details: libkface-git r780.ec6e823-1

Git Clone URL: (read-only, click to copy)
Package Base: libkface-git
Description: A Qt/C++ wrapper around LibFace library to perform face recognition and detection over pictures
Upstream URL:
Licenses: GPL, LGPL, FDL
Groups: digikamsc-git
Conflicts: libkface
Provides: libkface
Submitter: flamelab
Maintainer: Sevenseven
Last Packager: Sevenseven
Votes: 16
Popularity: 0.000000
First Submitted: 2011-02-06 10:48
Last Updated: 2017-01-15 09:07

Latest Comments

jat255 commented on 2015-10-04 14:27

Hmm, ok. Maybe I had some old files hanging around from a previous build. Anyway, if you want to use OpenCV v. 3+, I believe the steps from that link are necessary.

sl1pkn07 commented on 2015-10-04 09:43

I use the opencv from repository, build ok

jat255 commented on 2015-10-04 04:42

Yeah, so it turns out that the package expects opencv 3 (I think) and that opencv must be compiled with the contributed modules (following instructions here:

Once I did that (using the opencv-git package with a custom PKGBUILD for the cmake options), libkface compiled with no problems.

sl1pkn07 commented on 2015-10-03 18:47

you use opencv from repository? use a clean sources?

jat255 commented on 2015-10-03 18:32

Having trouble getting this to build.

Errors about opencv2 files not being found, even though it is installed and found by CMake:

-- Starting CMake configuration for: libkface
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.6")
-- Found PythonInterp: /usr/bin/python (found version "3.4.3")
-- Found KF5I18n: /usr/lib64/cmake/KF5I18n/KF5I18nConfig.cmake (found version "5.14.0")
-- Found KF5: success (found suitable version "5.14.0", minimum required is "5.1.0") found components: I18n
-- First try at finding OpenCV...
-- Great, found OpenCV on the first try.
-- OpenCV Root directory is: /usr/share/opencv
-- OpenCV: Found version 2.4.11 (required: 2.4.9)
-- OpenCV headers: /usr/include/opencv;/usr/include
-- OpenCV libs : opencv_core;opencv_highgui;opencv_objdetect;opencv_contrib;opencv_legacy;opencv_imgproc
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success

-- The following OPTIONAL packages have been found:

* OpenCV

-- The following REQUIRED packages have been found:

* ECM (required version >= 1.1.0)
* Qt5Core
* Qt5Widgets
* Qt5Sql
* Qt5Xml
* Qt5Gui
* Qt5 (required version >= 5.2.0)
* Gettext
* PythonInterp
* KF5I18n (required version >= 5.1.0)
* KF5 (required version >= 5.1.0)

-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/yaourt-tmp-josh/aur-libkface-frameworks-git/src/build
Scanning dependencies of target extract_funnel_data
[ 4%] Generating
[ 4%] Built target extract_funnel_data
Scanning dependencies of target KF5KFace_automoc
[ 8%] Automatic moc for target KF5KFace
Generating moc_databasecorebackend.cpp
[ 8%] Built target KF5KFace_automoc
Scanning dependencies of target KF5KFace
[ 12%] Building CXX object src/CMakeFiles/KF5KFace.dir/detection/opencvfacedetector.cpp.o
In file included from /tmp/yaourt-tmp-josh/aur-libkface-frameworks-git/src/libkface/src/detection/opencvfacedetector.h:40:0,
from /tmp/yaourt-tmp-josh/aur-libkface-frameworks-git/src/libkface/src/detection/opencvfacedetector.cpp:41:
/tmp/yaourt-tmp-josh/aur-libkface-frameworks-git/src/build/src/libopencv.h:59:31: fatal error: opencv2/face.hpp: No such file or directory
compilation terminated.
src/CMakeFiles/KF5KFace.dir/build.make:62: recipe for target 'src/CMakeFiles/KF5KFace.dir/detection/opencvfacedetector.cpp.o' failed
make[2]: *** [src/CMakeFiles/KF5KFace.dir/detection/opencvfacedetector.cpp.o] Error 1
CMakeFiles/Makefile2:173: recipe for target 'src/CMakeFiles/KF5KFace.dir/all' failed
make[1]: *** [src/CMakeFiles/KF5KFace.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Anonymous comment on 2011-03-16 11:38

Seems to be fixed today in GIT (after weeks).

Anonymous comment on 2011-03-10 18:43

[ 5%] Building CXX object libkface/CMakeFiles/kface.dir/kface_automoc.o
[ 11%] Building CXX object libkface/CMakeFiles/kface.dir/database.o
/home/fri13/build/libkface-git/src/libkface-build/libkface/database.cpp: In member function 'QList<KFaceIface::Face> KFaceIface::Database::detectFaces(const KFaceIface::Image&)':
/home/fri13/build/libkface-git/src/libkface-build/libkface/database.cpp:187:59: error: no matching function for call to 'libface::LibFace::detectFaces(const IplImage*&, CvSize&)'
/usr/include/libface/LibFace.h:96:21: note: candidates are: std::vector<libface::Face>* libface::LibFace::detectFaces(const IplImage*)
/usr/include/libface/LibFace.h:110:21: note: std::vector<libface::Face>* libface::LibFace::detectFaces(const std::string&, int)
/usr/include/libface/LibFace.h:127:21: note: std::vector<libface::Face>* libface::LibFace::detectFaces(const char*, int, int, int, int, int, int)
/home/fri13/build/libkface-git/src/libkface-build/libkface/database.cpp: In member function 'bool KFaceIface::Database::updateFaces(QList<KFaceIface::Face>&)':
/home/fri13/build/libkface-git/src/libkface-build/libkface/database.cpp:228:42: error: no match for 'operator=' in 'ids = ((KFaceIface::Database*)this)->KFaceIface::Database::d.QExplicitlySharedDataPointer<T>::operator-> [with T = KFaceIface::Database::DatabasePriv]()->KFaceIface::Database::DatabasePriv::libface->libface::LibFace::update((& faceVec), 1)'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/bits/vector.tcc:156:5: note: candidate is: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int, _Alloc = std::allocator<int>]
/home/fri13/build/libkface-git/src/libkface-build/libkface/database.cpp: In member function 'QList<double> KFaceIface::Database::recognizeFaces(QList<KFaceIface::Face>&)':
/home/fri13/build/libkface-git/src/libkface-build/libkface/database.cpp:275:48: error: no match for 'operator=' in 'result = libface::LibFace::recognise(std::vector<libface::Face>*, int)((& faceVec), 1)'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/bits/vector.tcc:156:5: note: candidate is: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = std::pair<int, double>, _Alloc = std::allocator<std::pair<int, double> >]
/home/fri13/build/libkface-git/src/libkface-build/libkface/database.cpp: In member function 'void KFaceIface::Database::setDetectionSpecificity(double)':
/home/fri13/build/libkface-git/src/libkface-build/libkface/database.cpp:346:17: error: 'class libface::LibFace' has no member named 'setDetectionSpecificity'
/home/fri13/build/libkface-git/src/libkface-build/libkface/database.cpp: In member function 'double KFaceIface::Database::detectionSpecificity() const':
/home/fri13/build/libkface-git/src/libkface-build/libkface/database.cpp:351:24: error: 'class libface::LibFace' has no member named 'getDetectionSpecificity'
/home/fri13/build/libkface-git/src/libkface-build/libkface/database.cpp:352:1: error: control reaches end of non-void function
make[2]: *** [libkface/CMakeFiles/kface.dir/database.o] Error 1
make[1]: *** [libkface/CMakeFiles/kface.dir/all] Error 2
make: *** [all] Error 2

Anonymous comment on 2011-02-25 07:38

Does not build, gives errors.
Tried last build versions.