I seem to have an error with the linking part even though my code compiled with no errors.
I set the property like this:
I also added files required in the
Linker -> General -> Additional library directories
and
Linker -> Input -> Additional Dependencies
It still gave me an error after that.
code:
#include "opencv2/core.hpp"
#include "C:/Users/Downloads/opencv_contrib-master/opencv_contrib-master/modules/face/include/opencv2/face.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/objdetect.hpp"
#include <iostream>
#include <fstream>
#include <sstream>
using namespace cv;
using namespace cv::face;
using namespace std;
(output) error line:
Severity Code Description Project File Line Suppression State
Error LNK1104 cannot open file 'IlmImfd.lib' opencvTry
(output) when I try to redo the project with the same codes with the lib files included:
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "public: static struct
cv::Ptr<class cv::face::FisherFaceRecognizer> __cdecl
cv::face::FisherFaceRecognizer::create(int,double)" (
create@FisherFaceRecognizer@face@cv@@SA?AU?
$Ptr@VFisherFaceRecognizer@face@cv@@@3@HN@Z) referenced in function main
opencvTry C:\Users\151554F\Documents\Visual Studio 2017\Projects\In
progress\Face recog\opencvTry\try.obj 1
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "public: int __cdecl
cv::face::FaceRecognizer::predict(class cv::_InputArray const &)const " (?
predict@FaceRecognizer@face@cv@@QEBAHAEBV_InputArray@3@@Z) referenced in
function main opencvTry C:\Users\151554F\Documents\Visual Studio
2017\Projects\In progress\Face recog\opencvTry\try.obj 1