Welcome![Sign In][Sign Up]
Location:
Search - opencv 2.0 H

Search list

[Graph programopencv两个常见的编译错误

Description:

在利用opencv库进行编程中两个常见的问题的解决方法,十分有效!

以openCV的使用为例,并结合个实验经验,总结一下在使用其它库进行编程时VC环境下编译与链接时经常遇到的两个错误的解决办法.

1.编译错误

问题描述:编译时,出现编译如下编译错误:

fatal error C1083: Cannot open include file: 'cv.h': No such file or directory

意思是找不到语句 #include "cv.h" 的cv.h头文件.

解决办法:在工程环境下,Tools->Options->Directories,在页内Show directories for下拉列表框中选择 Include files,然后在Directories列表框中添加上cv.h的路径,
如:D:\OPENCV\CV\INCLUDE,再编译就能找到cv.h头文件了.

2.链接错误

问题描述:链接时出现如下错误:

Linking...

test.obj : error LNK2001: unresolved external symbol _cvCanny

Debug/cvtest.exe : fatal error LNK1120: 1 unresolved externals

解决办法:明明知道cvCanny函数(_cvCanny是纯C编译生成的目标文件的函数名)的原型说明在文件cv.h中,怎么又出现链接错误呢,可能是静态链接库的问题(可能还有其它的原因),
然后有两各解决办法:(1).通过project->Add to project->Files, 将cv.lib加到工程中(2).①Tools->Options->Directories,Show directories for下拉列表框中
选择 Library files,然后在Directories列表框中添加上cv.lib的路径,如:D:\OPENCV\LIB ② project->settings下的LINK属性页下,在Object/Library modules 的文本框中
加上 cv.lib 后,点击确定.此时链接通过.

 

仅为个人的实验经验,有可能不全面或错误.
 


Platform: | Size: 974 | Author: simon112233 | Hits:

[GDI-Bitmapopencv4_Lib

Description: opencv4库文件,可以有效提高图像处理工作者的编程效率。使用时要包含cv.h,ipl.h和highgui.h三个头文件。-opencv4 libraries can effectively improve the image processing workers programming efficiency. Used to contain cv.h, ipl.h and highgui.h three headers.
Platform: | Size: 10214400 | Author: chenxin | Hits:

[Special EffectsOTSU

Description: 在VC++6.0 已经openCV环境下的一维OTSU代码,实现图像二值化-// OTSU.h: interface for the COTSU class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_OTSU_H__33C2086A_C181_490B_946D_837B4C7FB914__INCLUDED_) #define AFX_OTSU_H__33C2086A_C181_490B_946D_837B4C7FB914__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 //---OpenCV Lib file----------- #pragma comment (lib,"cv") #pragma comment (lib,"highgui") #pragma comment (lib, "cxcore") //---gsl Lib file----------- //#pragma comment (lib, "libgsl.a") #include "cv.h" #include "cxcore.h" #include "highgui.h" class COTSU { public: IplImage* Binarize( IplImage* pImg, int nThreshold ) int Threshold() void CalculateThresh( double* pHist, double dMean ) void GetThreshold( IplImage* pImg, CRect Rect ) COTSU() virtual ~COTSU() protected: bool m_bDone int m_nThreshold } #endif // !defined(AFX_OTSU_H__33C2086A_C181_490B_946D_837B4C7FB914__INCLUDED_)
Platform: | Size: 2048 | Author: shaohu | Hits:

[Windows DevelopopenCv1.1.0DLL

Description: 图形图像处理OpenCV1.1.0的debug 和 release版本的D-Graphics Image Processing OpenCV1.1.0 the debug and release versions of the DLL
Platform: | Size: 2746368 | Author: 冯选 | Hits:

[Othertraincascade

Description: features.h for opencv 2.0 for traincascade
Platform: | Size: 2048 | Author: kforcom | Hits:

[Graph Recognize2011051102

Description: 基于OPENCV的多人脸检测与定位系统,采用VC++6.0编写的,实现人脸定位并保存人脸图像.-OPCV based multiplayer face detection and location system, prepared by VC++6.0 to achieve face location and save the face image.
Platform: | Size: 3698688 | Author: wangbin | Hits:

[OpenCVopencv-lib-dll-h

Description: opencv的常用dll文件、include头文件、lib库文件,做opencv相关编程的时候需要。-opencv common dll files, include header files, lib library files, do opencv-related programming time required.
Platform: | Size: 11217920 | Author: 王华 | Hits:

[OpenCVPatch_Sparsity

Description: 算法仿真:论文《Image Inpaiting by Patch Propagation Using Patch Sparsity》中提出的图像修复算法的; 1)使用了OpenCV2.2.0开源机器视觉库,IDE为VS2010 2)设置系统环境变量OPENCV_DIR为OpenCV的安装路径,如C:\OpenCV2.2;VS2010属性页文件依赖于此环境变量,在Path中添加C:\OpenCV2.2\bin,更具体的环境配置可以查看OpenCV相关手册设置属性页文件或Email:zhenjia.dou@gmail.com 3)编译后为dll,导出函数可以查看文件Patch_Sparsity.h -The algorithms proposed in the paper《Image Inpaiting by Patch Propagation Using Patch Sparsity》
Platform: | Size: 15360 | Author: | Hits:

[OpenCVClassic_Exemplar

Description: 论文《Region Filling and Object Removal by Exemplar-Based Image Inpainting》中提出的图像修复算法 1)使用了OpenCV2.2.0和VS2010,设置系统环境变量OPENCV_DIR为OpenCV的安装路径,如C:\OpenCV2.2,在path中添加环境变量C:\OpenCV2.2\bin,可以根据OpenCV提供的用户手册设置属性页文件 2)生产dll,具体的函数可以查看文件Classic_Exemplar.h 3)如有问题请联系zhenjia.dou@gmail.com-The algorithms proposed in 《Region Filling and Object Removal by Exemplar-Based Image Inpainting》
Platform: | Size: 12288 | Author: | Hits:

[OpenCVMRF_Based

Description: ,论文《Image Completion Using Efficient Belief Propagation Via Priority Scheduling and Dynamic Pruning》中提出的图像修复算法 1)使用了OpenCV2.2.0和VS2010,设置系统观景变量OPENCV_DIR为OpenCV的安装路径,如C:\OpenCV2.2,在path中添加环境变量C:\OpenCV2.2\bin 2)生产dll,具体的函数可以查看文件MRF_Based.h 3)如有问题请联系zhenjia.dou@gmail.com-The algorithms proposed in the papar<Image Completion Using Efficient Belief Propagation Via Priority Scheduling and Dynamic Pruning>
Platform: | Size: 15360 | Author: | Hits:

[AI-NN-PRDeepLearnToolbox_CNN_lzbV3.0

Description: CNN - 主程序 参考文献: [1] Notes on Convolutional Neural Networks. Jake Bouvrie. 2006 [2] Gradient-Based Learning Applied to Document Recognition. Yann LeCun. 1998 [3] https://github.com/rasmusbergpalm/DeepLearnToolbox 作者:陆振波 电子邮件:luzhenbo2@qq.com 个人博客: http://blog.sina.com.cn/luzhenbo2 毕业院校:海军工程大学,船舶与海洋工程(水声工程),博士 精通方向:信号处理,图像处理,人工智能,模式识别,支持向量机,深度学习,机器学习,机器视觉,群体智能,Matlab与VC++混编 擅长技能:战略规划,团队管理,C,C++,Matlab,OpenCV,DSP,并行计算,图像处理,智能视觉,卷积神经网络,人脸检测,行人检测,车牌识别,特征提取,智能眼镜,辅助驾驶,ADAS,AdaBoost,LBP,HOG,MeanShift,目标检测,目标识别,目标跟踪,大数据 - CNN- the main program reference: [1] Notes on Convolutional Neural Networks. Jake Bouvrie. 2006 [2] Gradient-Based Learning Applied to Document Recognition. Yann LeCun. 1998 [3] https://github.com/rasmusbergpalm/DeepLearnToolbox Author: Lu Zhenbo E-mail: luzhenbo2@qq.com Personal blog: http://blog.sina.com.cn/luzhenbo2 Graduated: Naval University of Engineering, Naval Architecture and Marine Engineering (Underwater Acoustic), Dr. Proficient direction: signal processing, image processing, artificial intelligence, pattern recognition, support vector machines, deep learning, machine learning, machine vision, swarm intelligence, Matlab and VC++ mixed Good skills: strategic planning, team management, C, C++, Matlab, OpenCV, DSP, parallel computing, image processing, intelligent vision, convolution neural network, face detection, pedestrian detection, license plate recognition, feature extraction, smart glasses, driver assistance, ADAS, AdaBoost, LBP, H
Platform: | Size: 982016 | Author: 陆振波 | Hits:

[GDI-Bitmapcv100

Description: CvvImage.h头文件用于opencv图像编程人脸识别等-CvvImage.h header file for opencv face recognition and other image program
Platform: | Size: 1844224 | Author: 严华 | Hits:

[Special EffectsRGB

Description: 一个简单的检测图像中特定颜色的程序,opencv颜色识别的HSV中各个颜色所对应的H的范围: Orange 0-22 Yellow 22- 38 Green 38-75 Blue 75-130 Violet 130-160 Red 160-179-image identification
Platform: | Size: 1024 | Author: t | Hits:

CodeBus www.codebus.net