You have to :
- Download opencv 3.2 unzip it (in C:\Users\Laurent.PC-LAURENT-VISI\Downloads\ on my computer)
- git clone
https://github.com/opencv/opencv_contrib.githttps://github.com/opencv/opencv_contrib.git ( in g:/lib on my computer) - run cmake GUI. give opencv
pathpath in where is source file (C:\Users\Laurent.PC-LAURENT-VISI\Downloads\opencv/sources - press configure
- if you use VS2015 disable cuda (in build (12 check box)and with_cuda and
with cmake variables)withcufft ) - give path to opencv_contrib/modules (where you clone it and don't forget
modules)modules g:/lib/opencv_contrib/modules) - generate
- open project if you have vs and build solution (drink a coffee)
Now build face sample in opencv_contrib
- run
cmakecmake - where is the source code = G:/Lib/opencv_contrib/modules/face/samples
- where to build binaries = C:/Users/Laurent.PC-LAURENT-VISI/Downloads/opencv/sources/samples
- fill all field like this
- cmake cannot find opencv : give path C:\Users\Laurent.PC-LAURENT-VISI\Downloads\opencv\sources in cmake variables OpenCV_DIR
build project and no errors...