欢迎来到天天文库
浏览记录
ID:17024126
大小:60.50 KB
页数:3页
时间:2018-08-26
《如何在c+++builder(bcb)中使用opencv》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、[程式]OpenCV學習筆記心得02:如何在C++Builder(BCB)中使用OpenCV由於OpenCV是一個VC++的開放源碼,因此使用的類別都是VC++提供的,如果想要在BCB中使用,就必須先將OpenCV的library轉換成為BCB的類別。以下是步驟:請至SourceForge.net的OpenComputerVisionLibraryproject下載OpenCV。OpenCV下載頁面下載完,請將OpenCV安裝在C:ProgramFilesOpenCV目錄下面。在BorlandC++Buil
2、der6.0開發環境下1.你可以用Windows的開始-->搜尋在BCB的檔案夾下找到coff2omf.exe,使用這個檔案可以將VC++的library轉換成BCB適合的library2.在C碟建立一個資料夾,名字叫做tt將資料夾C:ProgramFilesOpenCVlib裡面的8個library複製到tt裡面。建立一個新的文字檔案(txt),並將下面的文字貼進去,coff2omf-lib:msc:ttcv.libc:ttbcv.libcoff2omf-lib:msc:ttcvaux.li
3、bc:ttbcvaux.libcoff2omf-lib:msc:ttcvcam.libc:ttbcvcam.libcoff2omf-lib:msc:ttcvhaartraining.libc:ttbcvhaartraining.libcoff2omf-lib:msc:ttcxcore.libc:ttbcxcore.libcoff2omf-lib:msc:ttcxts.libc:ttbcxts.libcoff2omf-lib:msc:tthighgui.libc:ttb
4、highgui.libcoff2omf-lib:msc:ttml.libc:ttbml.lib按滑鼠右鍵重新命名為coff2omf.bat3.滑鼠點擊coff2omf.bat兩下,執行coff2omf.bat就會建立八個以b開頭的library檔,此八個library就是相容於BCB的library otherstaffoftheCentre.Duringthewar,ZhuwastransferredbacktoJiangxi,andDirectorofthenewOfficeinJingdezhen
5、,JiangxiCommitteeSecretary.Startingin1939servedasrecorderoftheWestNorthOrganization,SecretaryoftheSpecialCommitteeAfterthevictoryofthelongMarch,hehasbeentheNorthwestOfficeoftheFederationofStateenterprisesMinister,ShenmufuguSARmissions,DirectorofNingxiaCounty
6、partyCommitteeSecretaryandrecorderoftheCountypartyCommitteeSecretary,Ministersand1.接下來先建立一個欲使用OpenCV的專案,建立完畢後,在Menu中點選Project-->AddtoProject將剛剛建立的八個lib檔加入專案。2.點選Project-->Options可以在裡面找到Directories/Conditionals這個Tab在IncludePath加入下列5個路徑,C:ProgramFilesOpenCV
7、cvincludeC:ProgramFilesOpenCVcxcoreincludeC:ProgramFilesOpenCVotherlibshighguiC:ProgramFilesOpenCVcvauxincludeC:ProgramFilesOpenCVotherlibscvcamincludeotherstaffoftheCentre.Duringthewar,ZhuwastransferredbacktoJiangxi,andDirectorofthenewOffi
8、ceinJingdezhen,JiangxiCommitteeSecretary.Startingin1939servedasrecorderoftheWestNorthOrganization,SecretaryoftheSpecialCommitteeAfterthevictoryofthelongMarch,hehasbeentheNorthwestOfficeoftheFede
此文档下载收益归作者所有