2
votes

I am a beginner in openCV. I have been trying out face detection and recognition in Windows platform. I have integrated different pieces of codes. I am also using PCA method to recognize the faces.I am getting an error like below,

Error 1 error LNK1120: 2 unresolved externals Error 2 error LNK2019: unresolved external symbol _cvCalcEigenObjects referenced in function "void __cdecl doPCA(void)" (?doPCA@@YAXXZ) Error 3 error LNK2019: unresolved external symbol _cvEigenDecomposite referenced in function "void __cdecl learn(char *)" (?learn@@YAXPAD@Z)

can someone please resolve.,..

1
which development environment are you using? Have you linked to the opencv lib file ? - TomP89
Ya I Have Linked all lib files... the demo Program of displaying sample images kind of programme works fine.. - Keerthan Tantry
And i m using Visual Studio . - Keerthan Tantry
under project properties - Linker - General, are the "Additional Library Directories" setup correctly ? That's assuming your not using the full path to the library under the Linker -Input tab - TomP89
I have specified the OpenCv lib location..I am getting error in a function that calls cvCalcEigenObjects and cvEigenDecomposite ..Is it defined in any specific header? - Keerthan Tantry

1 Answers

0
votes

As you are saying that you are using VS and the demo programs of displaying images works fine.Maybe you have just added few lib files in Additional Dependencies.Go on add some more required for the function.Also it seems you want to try out PCA on your data.please see the documentation of PCA at http://opencv.itseez.com/modules/core/doc/operations_on_arrays.html?highlight=pca#PCA.And if you want some really working code visit this page. The set of input can of different database but must be gray scale and resized to same size.