如何在OSX下用brew安装opencv2 [英] How can I install opencv2 with brew under OSX

查看:88
本文介绍了如何在OSX下用brew安装opencv2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我使用以下命令安装了opencv:

Recently, I installed opencv with the following command:

brew install opencv

我发现opencv3安装在目录/usr/include/usr/lib中.但是我想要的是opencv2.如何使用brew命令安装opencv2?

I found opencv3 was installed in dir /usr/include and /usr/lib. But what I want is opencv2. How can install opencv2 with the brew command?

推荐答案

找到答案的最简单方法是使用brew search查找可用的软件包.因此,在您的情况下:

The easiest way to find the answer is to use brew search to look for available packages. So, in your case:

brew search opencv

您将在其中看到软件包opencv@2.因此,您需要:

There you will see the package opencv@2 listed. So, you need:

brew install opencv@2

这篇关于如何在OSX下用brew安装opencv2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆