OpenCV集成《个人笔记》

第一:

ls

cd到项目路径下

ls

执行xcode-select install安装软件命令

这个时候报错

xcode-select: error: invalid argument 'install'

Usage: xcode-select [options]

Print or change the path to the active developer directory. This directory

controls which tools are used for the Xcode command line tools (for example,

xcodebuild) as well as the BSD development commands (such as cc and make).

Options:

-h, --helpprint this help message and exit

-p, --print-pathprint the path of the active developer directory

-s , --switch set the path for the active developer directory

--installopen a dialog for installation of the command line developer tools

-v, --versionprint the xcode-select version

-r, --resetreset to the default command line tools path

错误原因可能是我是复制的命令而不是敲打的命令 有可能多复制了什么,少了两个小横线 - -;

退出桌面安装

执行

安装命令xcode-select —install安装命令

安装的一些步骤,最后提示安装成功。

测试是否安装成功, 在次命令xcode-select --install

提示:xcode-select: error: command line tools are already installed, use "Software Update" to install updates

说明安装成功了。

再次测试是否成功:

sudo xcodebuild -license

一直按空格

然后到最后遇到 “ey**” 这个单词 打一下这个单词 然后在回车 ,提示成功。

python官方.py 用到

https://www.python.org/

opencv2.framework导入项目中,在导入如图想framework,8个;





注意

注意

添加私有设置的那个图片中的如下图

在添加的时候 有一个view controller-based******* N0; 这个是按照 openCV的数中 12 也的提示加的 ,为了以后不出问题 提前加上。

The status bar and fullscreen settings are stored in the app'sInfo.plistle. SelectCoolPig|CoolPig|Info.plistin the navigator pane. Now, in the editor area, note that theUIRequiresFullscreenandStatus bar is initially hiddenproperties both have theYESvalue. However, we still need to add another property to ensure that the status bar will not appear. Hover over the last item in the list, and click on the+button to insert a new property. EnterView controller-based status bar appearanceas the property's key and set its value toNO, as shown in the following screenshot:



只要简单的设置,现在videoCamera已经就绪了,只需要以下命令:

[self.videoCamera start];

[self.videoCamera stop];

进行控制

c++ 三个错误 需要更改objective-c++


最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Xcode 9 Release Notes See more downloads 关于Xcode Accessin...
    印林泉阅读 4,481评论 7 3
  • afinalAfinal是一个android的ioc,orm框架 https://github.com/yangf...
    passiontim阅读 15,489评论 2 45
  • 年纪渐长,发现自己开始喜欢一些颜色鲜艳的衣裳。衣橱里不再是简单的黑咖白,宝蓝,薄荷绿,橘红,甚至有了之前从来不会碰...
    江南烟雨阅读 913评论 3 4
  • 清寒的秋日 与你相遇 你那熟悉的笑脸 清澈的眸子 没有轰轰烈烈 却一见倾心 笑谈之间 生命有了惊喜 我愿不眠 看你...
    山雨林夕阅读 378评论 6 4
  • 请观众自觉打开音乐播放器找到一首《无情的温柔》然后一边听,一边我们可以继续了… 何时起,我们开始爱了? 何时起,爱...
    陈小宝i阅读 217评论 0 1