您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 管理学资料 > Visual.Studio2013+OpenCV3.0b机器视觉应用4.13
集美大学机械工程学院-郑东强VisualStudio&OpenCV机器视觉应用3.0OpenSourceComputerVision:开源计算机视觉(库)集美大学机械工程学院-郑东强OpenCV现有中文教材基于OpenCV1.X,建议基本掌握2.x基本环境后,再阅读。集美大学机械工程学院-郑东强OpenCV现有中文教材基于OpenCV2.X集美大学机械工程学院-郑东强OpenCV帮助…\opencv\doc1、opencv_cheatsheet.pdf(OpenCV简明表)2、opencv_tutorials.pdf(OpenCV案例教程)**3、opencv2refman.pdf(OpenCV参考手册)*4、opencv_user.pdf(OpenCV用户入门)5、opencv2manager.pdf(OpenCV安卓配置)网址:://://wiki.opencv.org.cn/集美大学机械工程学院-郑东强opencv_cheatsheet.pdf:简明表(2页)KeyOpenCVClasses:关键类MatrixBasics:矩阵基础MatrixManipulations:Copying,Shuffling,PartAccess:矩阵的操作ImageProcessing:图像处理DataI/O:数据输入输出SimpleGUI(highguimodule):简单界面CameraCalibration,PoseEstimationandDepthEstimation:摄像机标定ObjectDetection:物体探测集美大学机械工程学院-郑东强opencv_user.pdf:用户入门(23页)1Operationswithimages:操作数字图像2Features2d:特征点3HighGUI:使用Kinect(微软注册)体感摄影机和其他OpenNI兼容的深度传感器。OpenNI(开放自然交互)是一个多语言,跨平台的框架。4CascadeClassifierTraining:级联分类器训练5HighGUI:使用英特尔CreativeSenz3D或其它感知计算SDK兼容的深度传感器重点说明集美大学机械工程学院-郑东强opencv_tutorials.pdf:案例教程(493页)1IntroductiontoOpenCV2coremodule.TheCoreFunctionality3imgprocmodule.ImageProcessing4highguimodule.HighLevelGUIandMedia5calib3dmodule.Cameracalibrationand3Dreconstruction6feature2dmodule.2DFeaturesframework7videomodule.Videoanalysis8objdetectmodule.ObjectDetection9mlmodule.MachineLearning10photomodule.Computationalphotography11gpumodule.GPU-AcceleratedComputerVision12OpenCViOS13OpenCVViz14Generaltutorials完整实例集美大学机械工程学院-郑东强opencv2refman.pdf:参考手册(731页)1Introduction2core.TheCoreFunctionality3imgproc.ImageProcessing4imgcodecs.Imagefilereadingandwriting5videoio.MediaI/O6highgui.High-levelGUIandMediaI/O7video.VideoAnalysis8calib3d.CameraCalibrationand3DReconstruction9features2d.2DFeaturesFramework10objdetect.ObjectDetection11ml.MachineLearning12flann.ClusteringandSearchinMulti-DimensionalSpaces13photo.ComputationalPhotography14stitching.Imagesstitching15cuda.CUDA-acceleratedComputerVision16cudaarithm.CUDA-acceleratedOperationsonMatrices17cudabgsegm.CUDA-acceleratedBackgroundSegmentation18cudacodec.CUDA-acceleratedVideoEncoding/Decoding19cudafeatures2d.CUDA-acceleratedFeatureDetectionandDescription20cudafilters.CUDA-acceleratedImageFiltering21cudaimgproc.CUDA-acceleratedImageProcessing22cudaoptflow.CUDA-acceleratedOpticalFlow23cudastereo.CUDA-acceleratedStereoCorrespondence24cudawarping.CUDA-acceleratedImageWarping25shape.ShapeDistanceandMatching26superres.SuperResolution27videostab.VideoStabilization28viz.3DVisualizer片段说明集美大学机械工程学院-郑东强OpenCV版本Version3.0b集美大学机械工程学院-郑东强VisualC++及其MFC版本MFCversion6.0(stillmfc42.dll)VisualC++version6.0MFCversion7.0(mfc70.dll)VisualC++.NET2002MFCversion7.1(mfc71.dll)VisualC++.NET2003MFCversion8.0(mfc80.dll)VisualC++2005MFCversion9.0(mfc90.dll)VisualC++2008MFCversion10.0(mfc100.dll)VisualC++2010MFCversion11.0VisualC++2012MFCversion12.0VisualC++2013集美大学机械工程学院-郑东强OpenCV的目录D:\ProgramFiles\OpenCV\sourcesD:\ProgramFiles\OpenCV\build集美大学机械工程学院-郑东强OpenCV2.4.3+VisualStudio2008配置运行库系统环境变量Path:..\OpenCV2.4.3\build\x86\vc9\bin;包含文件目录:..\OpenCV2.4.3\build\include编译库文件目录:..\OpenCV2.4.3\build\x86\vc9\lib链接/输入/附加依赖项目:(带d的为Debug,不带为Release)opencv_core243.libopencv_core243d.libopencv_highgui243.libopencv_highgui243d.libopencv_ml243.libopencv_ml243d.lib。。。。。。集美大学机械工程学院-郑东强OpenCV3.0b+VisualStudio2013配置1Vs2010以后采用属性表作为工程设置运行库系统环境变量Path:..\OpenCV3.0b\build\x86\vc12\bin;编译库文件目录:..\OpenCV3.0b\build\x86\vc12\lib包含文件目录:..\OpenCV3.0b\build\include链接/输入/附加依赖项目:(带d的为Debug,不带为Release)opencv_ts300.libopencv_world300.libopencv_ts300d.libopencv_world300d.lib集美大学机械工程学院-郑东强OpenCV3.0b+VisualStudio2013配置2集美大学机械工程学院-郑东强OpenCV3.0b+VisualStudio2013配置3集美大学机械工程学院-郑东强实例ReadImg,读取一张图片-旧#includestdafx.h#includestring#includeopencv/cv.h//使用旧版本函数#includeopencv/highgui.husingnamespacecv;usingnamespacestd;intmain(intargc,_TCHAR*argv[]){IplImage*myImg=cvLoadImage(D:\\1.bmp);//读入图像if(!myImg){//如果读入图像失败return-1;}namedWindow(zdq,1);//创建窗口cvShowImage(zdq,myImg);//显示图像waitKey();//等待按键,按键盘任意键返回cvDestroyWindow(zdq);//释放窗口return0;}Release版本项目属性,链接器,输入opencv_core243.libopencv_highgui243.libopencv_ml243.lib集美大学机械工程学院-郑东强实例UseCam-旧#includestdafx.h#includestring#includeopencv/cv.h#includeopencv/highgui.husingnamespacecv;usingnamespacestd;CvCapture*capture;intc;IplImage*frame;voidon_trackbar(){while(true){frame=cvQueryFrame(capture);//循环获得摄像机得到的帧if(!frame){break;}if((c=cvWaitKey(100))==27){break;}//Esc的时候退出循环cvShowImage(frame,frame);cvWaitKey(1000);}}intmain(intargc,char**argv){capture=cvCaptureFromCAM(1);//获取摄像头if(!capture){printf(Couldnotinitializecapturing...\n);return-1;}cvNamedWindow(frame,1);//构建窗口on_trackbar();cvWaitKey(0);cvReleaseCapture(&capture);//释放摄像头cvDestroyWindow(frame);//释放窗口return0;}Release版本项目属性,链接器,输入opencv_core243.libopencv_highgui243.libopencv_ml243.lib集美大学机械工程学院-郑东强01加载并显示图像(CV01_ShowImage)#includeopencv2/opencv.hpp//OpenCV统一的头文件#includeiostreamintmain(intargc,char*argv[]){constchar*imageName=../pic.jpg;//图像路径及文件名cv::Matimage=cv::imread(imageName,cv::IMREAD_COLOR);if(!image.data){//数据校验s
本文标题:Visual.Studio2013+OpenCV3.0b机器视觉应用4.13
链接地址:https://www.777doc.com/doc-5596181 .html