[Digikam-devel] Re: [Bug 267789] Make face detection (kface) and geo tagging (kmap) optional features

Gilles Caulier caulier.gilles at gmail.com
Sun Mar 13 20:47:00 GMT 2011


Alex,

I compiled and installes libface from svn trunk and tried to compile
libkface. It doesn't work :

[gilles at localhost libface]$ svn up
À la révision 286.

[gilles at localhost libface]$
[gilles at localhost libkface]$ make
[  0%] Built target kface_automoc
Scanning dependencies of target kface
[  0%] Building CXX object
extra/libkface/libkface/CMakeFiles/kface.dir/kface_automoc.cpp.o
[  0%] Building CXX object
extra/libkface/libkface/CMakeFiles/kface.dir/database.cpp.o
/mnt/data/devel/GIT/2.x/extra/libkface/libkface/database.cpp: In
member function ‘QList<KFaceIface::Face>
KFaceIface::Database::detectFaces(const KFaceIface::Image&)’:
/mnt/data/devel/GIT/2.x/extra/libkface/libkface/database.cpp:185:
erreur: no matching function for call to
‘libface::LibFace::detectFaces(const IplImage* const&, CvSize)’
/usr/include/libface/LibFace.h:98: note: candidats sont:
std::vector<libface::Face*, std::allocator<libface::Face*> >*
libface::LibFace::detectFaces(const IplImage*)
/usr/include/libface/LibFace.h:112: note:
std::vector<libface::Face*, std::allocator<libface::Face*> >*
libface::LibFace::detectFaces(const std::string&, int)
/usr/include/libface/LibFace.h:129: note:
std::vector<libface::Face*, std::allocator<libface::Face*> >*
libface::LibFace::detectFaces(const char*, int, int, int, int, int,
int)
/mnt/data/devel/GIT/2.x/extra/libkface/libkface/database.cpp: In
member function ‘bool
KFaceIface::Database::updateFaces(QList<KFaceIface::Face>&)’:
/mnt/data/devel/GIT/2.x/extra/libkface/libkface/database.cpp:226:
erreur: no matching function for call to
‘libface::LibFace::update(std::vector<libface::Face,
std::allocator<libface::Face> >*)’
/usr/include/libface/LibFace.h:252: note: candidats sont: int
libface::LibFace::update(const std::string&,
std::vector<libface::Face*, std::allocator<libface::Face*> >*, int)
/usr/include/libface/LibFace.h:268: note:                 int
libface::LibFace::update(const char*, std::vector<libface::Face*,
std::allocator<libface::Face*> >*, int, int, int, int, int, int)
/usr/include/libface/LibFace.h:279: note:                 int
libface::LibFace::update(std::vector<libface::Face*,
std::allocator<libface::Face*> >*, int)
/usr/include/libface/LibFace.h:289: note:                 int
libface::LibFace::update(const IplImage*, std::vector<libface::Face*,
std::allocator<libface::Face*> >*, int)
/mnt/data/devel/GIT/2.x/extra/libkface/libkface/database.cpp: In
member function ‘QList<double>
KFaceIface::Database::recognizeFaces(QList<KFaceIface::Face>&)’:
/mnt/data/devel/GIT/2.x/extra/libkface/libkface/database.cpp:273:
erreur: no matching function for call to
‘libface::LibFace::recognise(std::vector<libface::Face,
std::allocator<libface::Face> >*)’
/usr/include/libface/LibFace.h:186: note: candidats sont:
std::vector<std::pair<int, float>, std::allocator<std::pair<int,
float> > > libface::LibFace::recognise(const IplImage*,
std::vector<libface::Face*, std::allocator<libface::Face*> >*, int)
/usr/include/libface/LibFace.h:199: note:
std::vector<std::pair<int, float>, std::allocator<std::pair<int,
float> > > libface::LibFace::recognise(const std::string&,
std::vector<libface::Face*, std::allocator<libface::Face*> >*, int)
/usr/include/libface/LibFace.h:211: note:
std::vector<std::pair<int, float>, std::allocator<std::pair<int,
float> > > libface::LibFace::recognise(const char*,
std::vector<libface::Face*, std::allocator<libface::Face*> >*, int,
int, int, int, int, int)
/usr/include/libface/LibFace.h:222: note:
std::vector<std::pair<int, float>, std::allocator<std::pair<int,
float> > > libface::LibFace::recognise(std::vector<libface::Face*,
std::allocator<libface::Face*> >*, int)
make[2]: *** [extra/libkface/libkface/CMakeFiles/kface.dir/database.cpp.o]
Erreur 1
make[1]: *** [extra/libkface/libkface/CMakeFiles/kface.dir/all] Erreur 2
make: *** [all] Erreur 2

Gilles Caulier

2011/3/13 Marcel Wiesweg <marcel.wiesweg at gmx.de>:
>
>> I have made necessary changes to the libkface to compile with libface
>> trunk. However, when I ran the GUI to test if everything was working, I
>> found there was a segfault, coming from QList which I haven't figured out
>> why yet. Do you want me to submit the latest change with new internal
>> version of libface that builds but won't work?
>
> No don't commit something that crashes ;-)
> You could post the patch here.
>
> See also the commit by Michael yesterday.
> Your work is about using libkface with the new libface 0.2 API, right?
>
> Btw I would prefer to keep specificity in the libkface API, in case we support
> that again in the future. For me, it is orthogonal to the speed setting.
> _______________________________________________
> Digikam-devel mailing list
> Digikam-devel at kde.org
> https://mail.kde.org/mailman/listinfo/digikam-devel
>



More information about the Digikam-devel mailing list