mac brew 安装 opencv_contrib c++
时间: 2023-11-08 22:53:39 浏览: 157
在Mac上使用c++在vscode中创建opencv项目.zip
要在mac上使用brew安装opencv_contrib模块,可以按照以下步骤进行操作:
1. 首先,确保已经安装了brew。如果没有安装,可以在终端中运行以下命令进行安装:
```
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```
2. 接下来,使用brew安装opencv和opencv_contrib模块。在终端中运行以下命令:
```
brew install opencv
brew install opencv_contrib
```
3. 安装完成后,你可以在/usr/local/Cellar/opencv_contrib目录中找到opencv_contrib模块的源代码。
请注意,这种方法安装的是最新的稳定版本opencv_contrib模块,并不是最新的master分支代码。如果你需要使用最新的master分支代码,可以按照官方的编译介绍中所提到的步骤进行配置、编译和安装。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [为OPENCV添加freetype支持并显示中文字符(在mac上编译opencv及contrib库)](https://blog.csdn.net/weixin_34304013/article/details/94201026)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [Mac 安装使用 OpenCV 图像处理神器](https://blog.csdn.net/wbf1013/article/details/120619317)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文