C++ openCV - createFisherFaceRecognizer was not declared in this scope -


i trying make facerecognizer in c++ using opencv. keep getting following errors:

1) cv::face::createfisherfacerecognizer(int, double), gives:

main.cpp:(.text+0x6a8): undefined reference to`cv::face::createfisherfacerecognizer(int, double)' 

2)face::fisherfacerecognizer::create(), gives:

 error: ‘cv::face::fisherfacerecognizer’ has not been declared 

none of work, correct way can run my code (none of commented lines worked...)?

i reinstalled everything, because no 1 me out. current situation:

general configuration opencv 3.2.0 =====================================   version control:               unknown    modules:     location (extra):            /home/yalishanda/downloads/opencv_contrib-3.2.0/modules     version control (extra):     unknown    platform:     timestamp:                   2017-07-04t08:29:50z     host:                        linux 4.8.0-36-generic x86_64     cmake:                       3.5.1     cmake generator:             unix makefiles     cmake build tool:            /usr/bin/make     configuration:               release    c/c++:     built dynamic libs?:      yes     c++ compiler:                /usr/bin/c++  (ver 5.4.0)     c++ flags (release):         -fsigned-char -w -wall -werror=return-type -werror=non-virtual-dtor -werror=address -werror=sequence-point -wformat -werror=format-security -wmissing-declarations -wundef -winit-self -wpointer-arith -wshadow -wsign-promo -wno-narrowing -wno-delete-non-virtual-dtor -wno-comment -fdiagnostics-show-option -wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -o3 -dndebug  -dndebug     c++ flags (debug):           -fsigned-char -w -wall -werror=return-type -werror=non-virtual-dtor -werror=address -werror=sequence-point -wformat -werror=format-security -wmissing-declarations -wundef -winit-self -wpointer-arith -wshadow -wsign-promo -wno-narrowing -wno-delete-non-virtual-dtor -wno-comment -fdiagnostics-show-option -wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -g  -o0 -ddebug -d_debug     c compiler:                  /usr/bin/cc     c flags (release):           -fsigned-char -w -wall -werror=return-type -werror=non-virtual-dtor -werror=address -werror=sequence-point -wformat -werror=format-security -wmissing-declarations -wmissing-prototypes -wstrict-prototypes -wundef -winit-self -wpointer-arith -wshadow -wno-narrowing -wno-comment -fdiagnostics-show-option -wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -o3 -dndebug  -dndebug     c flags (debug):             -fsigned-char -w -wall -werror=return-type -werror=non-virtual-dtor -werror=address -werror=sequence-point -wformat -werror=format-security -wmissing-declarations -wmissing-prototypes -wstrict-prototypes -wundef -winit-self -wpointer-arith -wshadow -wno-narrowing -wno-comment -fdiagnostics-show-option -wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -g  -o0 -ddebug -d_debug     linker flags (release):     linker flags (debug):     ccache:                      no     precompiled headers:         yes     dependencies:          /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libz.so gtk-x11-2.0 gdk-x11-2.0 pangocairo-1.0 atk-1.0 cairo gdk_pixbuf-2.0 gio-2.0 pangoft2-1.0 pango-1.0 gobject-2.0 fontconfig freetype gthread-2.0 glib-2.0 dl m pthread rt     3rdparty dependencies:       libjpeg libwebp libtiff libjasper ilmimf libprotobuf    opencv modules:     built:                 core flann imgproc ml photo reg surface_matching video dnn freetype fuzzy imgcodecs shape videoio highgui objdetect plot superres ts xobjdetect xphoto bgsegm bioinspired dpm face features2d line_descriptor saliency text calib3d ccalib datasets rgbd stereo tracking videostab xfeatures2d ximgproc aruco optflow phase_unwrapping stitching structured_light     disabled:                    world contrib_world     disabled dependency:      -     unavailable:                 cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python2 python3 viz cnn_3dobj cvv hdf matlab sfm    gui:      qt:                          no     gtk+ 2.x:                    yes (ver 2.24.30)     gthread :                    yes (ver 2.48.2)     gtkglext:                    no     opengl support:              no     vtk support:                 no    media i/o:      zlib:                        /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.8)     jpeg:                        libjpeg (ver 90)     webp:                        build (ver 0.3.1)     png:                         /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.2.54)     tiff:                        build (ver 42 - 4.0.2)     jpeg 2000:                   build (ver 1.900.1)     openexr:                     build (ver 1.7.1)     gdal:                        no     gdcm:                        no    video i/o:     dc1394 1.x:                  no     dc1394 2.x:                  no     ffmpeg:                      no       avcodec:                   no       avformat:                  no       avutil:                    no       swscale:                   no       avresample:                no     gstreamer:                   no     openni:                      no     openni primesensor modules:  no     openni2:                     no     pvapi:                       no     gigevisionsdk:               no     aravis sdk:                  no     unicap:                      no     unicap ucil:                 no     v4l/v4l2:                    no/yes     ximea:                       no     xine:                        no     gphoto2:                     no    parallel framework:            pthreads    other third-party libraries:     use ipp:                     9.0.1 [9.0.1]          at:                     /home/yalishanda/downloads/opencv-3.2.0/build/3rdparty/ippicv/ippicv_lnx     use ipp async:               no     use va:                      no     use intel va-api/opencl:     no     use lapack:                  no     use eigen:                   no     use cuda:                    no     use opencl:                  yes     use openvx:                  no     use custom hal:              no    opencl:                        <dynamic loading of opencl library>     include path:                /home/yalishanda/downloads/opencv-3.2.0/3rdparty/include/opencl/1.2     use amdfft:                  no     use amdblas:                 no    python 2:     interpreter:                 /usr/bin/python2.7 (ver 2.7.12)    python 3:     interpreter:                 /usr/bin/python3 (ver 3.5.2)    python (for build):            /usr/bin/python2.7    java:     ant:                         no     jni:                         no     java wrappers:               no     java tests:                  no    matlab:                        matlab not found or implicitly disabled    documentation:     doxygen:                     no    tests , samples:     tests:                       yes     performance tests:           yes     c/c++ examples:              no    install path:                  /usr/local    cvconfig.h in:              /home/yalishanda/downloads/opencv-3.2.0/build ----------------------------------------------------------------- 

this command compile: (https://pastebin.com/raw/1eb7jxzd)

g++ src/facedetection.cpp src/facerecognition.cpp main.cpp -l/usr/local/lib -lopencv_stitching -lopencv_superres -lopencv_videostab -lopencv_aruco -lopencv_bgsegm -lopencv_bioinspired -lopencv_ccalib -lopencv_dpm -lopencv_fuzzy -lopencv_line_descriptor -lopencv_optflow -lopencv_reg -lopencv_saliency -lopencv_stereo -lopencv_structured_light -lopencv_phase_unwrapping -lopencv_rgbd -lopencv_surface_matching -lopencv_tracking -lopencv_datasets -lopencv_text -lopencv_face -lopencv_plot -lopencv_dnn -lopencv_xfeatures2d -lopencv_shape -lopencv_video -lopencv_ximgproc -lopencv_calib3d -lopencv_features2d -lopencv_flann -lopencv_xobjdetect -lopencv_objdetect -lopencv_ml -lopencv_xphoto -lopencv_highgui -lopencv_videoio -lopencv_imgcodecs -lopencv_photo -lopencv_imgproc -lopencv_core -o main 

sort of speaking linking every library exists in opencv.... else can add?

createfisherfacerecognizer() must declared before being used. missing header file (.h). couldn't understand doc 1 it. must find 1 declares function.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -