openCV中未解决的外部符号错误 [英] Unresolved external symbol error in openCV

查看:123
本文介绍了openCV中未解决的外部符号错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是openCV的初学者。我一直在Windows平台上尝试人脸检测和识别。我整合了不同的代码。我也使用PCA方法来识别faces.I我得到如下错误,

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,


错误1错误LNK1120:2未解析的外部错误2错误LNK2019:
未解析的外部符号_cvCalcEigenObjects在函数
中引用void __cdecl doPCA(void)(?doPCA @@ YAXXZ)错误3错误LNK2019:
未解析的外部符号_cvEigenDecomposite在函数中引用
void __cdecl learn(char *)(?learn @@ YAXPAD @ Z)

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.,..

推荐答案

正如你所说的那样你正在使用VS而且显示图像的演示程序运行正常。也许你有只是在Additional Dependencies中添加了一些lib文件。继续添加一些函数所需。此外,你似乎想在你的数据上试用PCA。请参阅 http://opencv.itseez.com/modules/core/doc/operations_on_arrays.html?highlight=pca#PCA 。如果您想要一些真正有用的代码,请访问此页面。输入的集合可以是不同的数据库,但必须是灰度级并调整大小相同。

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.

这篇关于openCV中未解决的外部符号错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆