日本搞逼视频_黄色一级片免费在线观看_色99久久_性明星video另类hd_欧美77_综合在线视频

國內最全IT社區平臺 聯系我們 | 收藏本站
阿里云優惠2
您當前位置:首頁 > php開源 > 綜合技術 > Mac下Opencv(2.4.9)配置Xcode(4.6.1)

Mac下Opencv(2.4.9)配置Xcode(4.6.1)

來源:程序員人生   發布時間:2014-12-17 08:43:54 閱讀次數:3947次
1:安裝homebrew和cmake
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install cmake
2:安裝opencv
brew tap homebrew/science
brew install opencv

3.使用Xcode進行OpenCV項目開發

1.Open Xcode, choose New -> New Project -> Command Line Tool

2.Name it and select C++ for type

3.Click on your project from the left menu. Click the build settings tab from the top.
Filter all. Scroll to Search Paths. Under header search paths, for debug and release,
set the path to /usr/local/include. Under library search paths, set the path
to $(PROJECT_DIR). Finally, check if C++ standard library is libc++(Xcode默許的就是這個
) or not,if not, change it to this!
ps:部份xcode和opencv的版本需要用libstdc++,請自行測試哪一個合適自己。
4.Click on your project from the left menu. File->New->New Group,
Name the group OpenCV Frameworks
5.Select the folder (group) you just labeled, OpenCV Frameworks
in the left menu. Go to File -> add Files, Type shift + command +G, which
will allow you to manually go to a folder. Go to -> /usr/local/lib
6.Select both of these files, libopencv_core.dyliblibopencv_highgui.dylib,
and click Add. (you may need to add other library files from this folder to run other code.)
7.You must include this line of code in the beginning of your main.cpp file:
#include <opencv2/opencv.hpp>
可以修改main.cpp,代碼以下,運行結果就是顯示1張指定的圖片
#include <opencv2/opencv.hpp>
using namespace cv;
int main(int argc, char** argv) {
     Mat image;
     image = imread("/Users/hujiawei/Pictures/others/other_naicha/naicha.jpg", 1);
     namedWindow("Display Image", WINDOW_AUTOSIZE);
     imshow("Display Image", image);
     waitKey(0);
return 0;
}








生活不易,碼農辛苦
如果您覺得本網站對您的學習有所幫助,可以手機掃描二維碼進行捐贈
程序員人生
------分隔線----------------------------
分享到:
------分隔線----------------------------
關閉
程序員人生
主站蜘蛛池模板: 甜一伦一性一交 | 干片网在线| 久久久久久久久久电影 | 国产又黄又爽又色在线视频播放 | 最新三级网址 | 精品久久久一区二区 | 国产精品网站入口 | 日韩视频中文字幕 | 亚洲一级免费视频 | 国产一二三四区 | 日韩欧美综合在线视频 | 日韩精品一区二区三区中文在线 | 欧美日韩亚洲一区二区三区 | 欧美综合国产 | 婷婷五月情 | 色交视频 | 一区二区福利视频 | 欧美日韩国产精品一区 | 久久亚州 | www.99精品| 成人在线观看网站 | 久久99视频| 深夜视频一区二区 | av在线免费不卡 | 一区免费视频 | 黄色在线免费看 | 亚洲欧美在线视频 | 成年黄大片 | 精品永久免费 | 国产高清网站 | 午夜第一页 | 久久国产伊人 | 亚洲乱码国产乱码精品精 | 天天操天天干天天 | 一区二区三区精品在线 | 久久成人av| 一区二区三区免费 | 国产91一区 | 国产呦精品一区二区三区网站 | 99国产精品99久久久久久粉嫩 | v天堂在线 |