本文介绍了OpenCV不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在学习本教程时,我遇到了一些问题:- http: //www.scribd.com/doc/3496786/OpenCV-Installation-and-Getting-Started-Guide [ ^ ]
在Visual Studio中尝试了以下代码

I''ve had some problems whilst following the tutorial: - http://www.scribd.com/doc/3496786/OpenCV-Installation-and-Getting-Started-Guide[^]
Tried the following code in visual studio

#include <cv.h> /* required to use OpenCV */
#include <highgui.h> /* required to use OpenCV''s highgui */
void main(int argc, char *argv[]) {
    IplImage* image=0; /* pointer to an image */
    if(argv[1] != 0) image = cvLoadImage(argv[1], 1); // 1 for color

    if(image != 0) {
        cvNamedWindow("Display", CV_WINDOW_AUTOSIZE); // create a window
        cvShowImage("Display", image); // show image in window
        cvWaitKey(0); // wait until user hits a key
        cvDestroyWindow("Display");
    }
}



得到此输出
"



Got this output
"

Build Log      Build started: Project: Imageviewer, Configuration: Debug|Win32
 Command Lines      Creating temporary file "c:\Documents and Settings\Administrator\Desktop\ImageViewer\Imageviewer\Imageviewer\Debug\RSP00000439683536.rsp" with contents
[
/out:".\Debug\Imageviewer.exe.embed.manifest" /notify_update /manifest

".\Debug\Imageviewer.exe.intermediate.manifest"
]
Creating command line "mt.exe @"c:\Documents and Settings\Administrator\Desktop\ImageViewer\Imageviewer\Imageviewer\Debug\RSP00000439683536.rsp" /nologo"
 Output Window      Embedding manifest...
.\Debug\Imageviewer.exe.intermediate.manifest : general error c1010070: Failed to load and parse the manifest. The system cannot find the file specified.
 Results      Build log was saved at "file://c:\Documents and Settings\Administrator\Desktop\ImageViewer\Imageviewer\Imageviewer\Debug\BuildLog.htm"
Imageviewer - 1 error(s), 0 warning(s)



请帮忙!!!
在此先感谢



Please help!!!
Thanks in advance

推荐答案

Opul3nce写道:
Opul3nce wrote:

.\ Debug \ Imageviewer.exe .intermediate.manifest:一般错误c1010070:无法加载和解析清单.系统找不到指定的文件.

.\Debug\Imageviewer.exe.intermediate.manifest : general error c1010070: Failed to load and parse the manifest. The system cannot find the file specified.



在我看来,您的项目中找不到文件.

另外,您也可以尝试该教程的论坛/作者.



It appears to me that a file cannot be found in your project.

Alternatively you could try the forum/author of the tutorial.



这篇关于OpenCV不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 17:28