I cant find FaceRecognizer in opencv 3.0

asked 2015-06-11 07:02:13 -0500

xiangjin gravatar image

I download the lastest opencv 3.0 for windows, I want use createFisherFaceRecognizer for face recogizer ,but I can find it . "Contib" folder no longer exist in the "inlclue/opencv2" ,Who can tell me where it is? thanks a lot.

edit retag flag offensive close merge delete

Comments

1

get https://github.com/Itseez/opencv_contrib , add it to your main cmake settings, rebuild, and use:

#include "opencv2/face.hpp"
Ptr<face::FaceRecognizer> facerec = face::createLBPHFaceRecognizer();
berak gravatar imageberak ( 2015-06-11 07:06:15 -0500 )edit

hi,I get the source code from github , use gui-cmake configure, VS2012 rebuild,after rebuild i get these lib : opencv_features2d300d.dll opencv_ffmpeg300.dll opencv_flann300d.dll opencv_highgui300d.dll opencv_imgcodecs300d.dll opencv_imgproc300d.dll opencv_ml300d.dll opencv_objdetect300d.dll opencv_photo300d.dll opencv_shape300d.dll opencv_stitching300d.dll opencv_superres300d.dll opencv_video300d.dll opencv_videoio300d.dll opencv_videostab300d.dll opencv_core300d.dll opencv_calib3d300d.dll

I configure to VS2012 ,and compile my code ,but i get the error message : 1>D:\opencv\build\bin\Debug\opencv_features2d300d.dll : fatal error LNK1107: 文件无效或损坏: 无法在 0x2E8 处读取(invalid file or crashed ,cant read from 0X2E8).

how to fix? thks !

xiangjin gravatar imagexiangjin ( 2015-06-12 03:55:24 -0500 )edit

what about opencv_contrib ? you will need it.

(no idea about the corrupt dll atm., but you will need another build(including the contrib repo) anyway.

if something goes wrong, please add the cmake or compiler output to the question

berak gravatar imageberak ( 2015-06-12 05:27:49 -0500 )edit

first I click configure button on gui-cmake, set OPENCV_EXTRA_MODULES_PATH=D:/opencv/sources/opencv_contrib(download from github) then configure and generate ,output : CMake Warning at cmake/OpenCVFindIntelPerCSDK.cmake:17 (message): Intel Perceptual Computing SDK library directory (set by INTELPERC_LIB_DIR variable) is not found or does not have Intel Perceptual Computing SDK libraries. Call Stack (most recent call first): cmake/OpenCVFindLibsVideo.cmake:312 (include) CMakeLists.txt:525 (include)

found IPP (ICV version): 8.2.1 [8.2.1] at: D:/opencv/sources/3rdparty/ippicv/unpack/ippicv_win Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake Could NOT find P

xiangjin gravatar imagexiangjin ( 2015-06-12 21:20:08 -0500 )edit