• 986.42 KB
  • 2022-04-22 11:25:32 发布

Cmake编译OpenCV库及OpenCV库的使用

  • 6页
  • 当前文档由用户上传发布,收益归属用户
  1. 1、本文档共5页,可阅读全部内容。
  2. 2、本文档内容版权归属内容提供方,所产生的收益全部归内容提供方所有。如果您对本文有版权争议,可选择认领,认领后既往收益都归您。
  3. 3、本文档由用户上传,本站不保证质量和数量令人满意,可能有诸多瑕疵,付费之前,请仔细先通过免费阅读内容等途径辨别内容交易风险。如存在严重挂羊头卖狗肉之情形,可联系本站下载客服投诉处理。
  4. 文档侵权举报电话:19940600175。
'^Cmake?ÈOpenCV¥9OpenCV¥¦^xwkcagd@mail.ustc.edu.cn2013c1013FSCOpenCVVÂe1OpenCV.exe§›½SC8¹§SC=Œ"b½SC8¹•D:/OpenCVSCCmakeže1•#‡£c•2.8.12¤Binarydistributions§ó•http://www.cmake.org/cmake/resources/software.html,SCžÀJòCmake8¹XÚCþ¥"ã1:cmakeSCBuildOpenCV¥1.‹mCMake(cmake-gui),ÀJsourcecode8¹§=OpenCV8¹§˜„•SC8¹/opencv§3d•D:OpenCV/opencv,T8¹e¬kCMakeList.txtù‡©‡§ÀJbinaries8¹§Ò´)¤vs2010ó§8¹§Œ±^r•½§ùp´D:/OpenCV246§ã2§,:ÂCon gure§ÀJ?È죄ã3¤§ÀJVisualStudio10"2.1˜gCon gureƒ¬Ñyã4œ¹§kéõùÚÀ‘§„k˜vkÀÀ‘§Œ±ÀJÀBUILDEXAMPLESÀ‘§?ÈL§žm¬••"ùž2:˜gCon gure§ƒ¤±À‘ѬC•xÚ£ã5¤§,:ÂGenerate§–Generate¤=Œ"1 ã2:ÀJ8¹ã3:ÀJ?Èì3.Generateƒ§¬uybinaries8¹£3d•D:/OpenCV246¤eÑyéõ©‡§^vs2010‹mT8¹eOpenCV.sln©‡§,ÀJBuild-BatchBuild(ï-1ï)§ÀJALLBUILDÚINSTALLReleaseÚDebugÀ‘§,:ÂBuild£ï¤(ã6)"–=Œ£‡L§s¤žmŒU•§õu20©¨¤"¤ƒòinstallf8¹e./include./libÚ./bin8¹J•½˜§·Ò‰˜3D:/OpenCV2468¹e£Ù¦©‡ÑŒ±íؤ§ùÒïágCOpenCV¥"2 ã4:1˜gCon gureã5:1gCon gure3 ã6:ï¦^OPENCV#ïvs2010››A^ó§opencvtest§V•¹8¹§V¥8¹"‹mó§-á5§3†>ÀJVC++8¹À‘§,ü•¹8¹§Vopencv•¹8¹§3d´D:/OpenCV246/include§üÂ¥8¹§Vopencvlib8¹§3d´D:/OpenCV246/lib§ã8"V•6¥©‡§ó§-á5eÀJ†>óì-ѧÀJN•6‘§ÀJó§I‡¦^·¥©‡§dó§^opencvcore246d.lib§opencvhighgui246d.lib§opencvimgproc246d.lib§ã9",òopencvÄó¥8¹£3d•D:/OpenCV246/bin¤XÚ‚¸CþpathCþ¥§m…OŽÅ-á5-p?XÚ˜-‚¸Cþ-XÚCþ-path§ã10"éuÙ¦¥¦^§•{Ñ´Xd"OpenCV¥©‡·¶5K•opencv¬+‡Ò+á5§¬kcore,highgui,imgpro...§‡ÒÒ´opencv‡§3d•246£=opencv2.4.6¤§á5kü«§dL«debug‡§ÃL«release‡"Xopencvcore246d.lib§ÒL«debug‡opencv2.4.6core¬§opencvcore246.libÒL«release‡¥©‡"“èXeµ12/opencvtest/3#include4#include5#include6usingnamespacecv;7intmain()8f9cv::Matimage=cv::imread("ribery.jpg");10cv::namedWindow("src");11cv::imshow("src",image);124 13cv::Matgray;14cv::namedWindow("gray");15cv::cvtColor(image,gray,cv::COLORRGB2GRAY);16cv::imshow("gray",gray);1718cv::waitKey(0);19return0;20g$1(JXã7"ã7:(Jã8:ó§8¹5 ã9:V•6¥©‡ã10:VXÚ‚¸Cþ6'