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.,..
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.
来源:https://stackoverflow.com/questions/9173452/unresolved-external-symbol-error-in-opencv