如何在Centos 6.8上安装OpenCV 3?

2024-04-23 15:20:49 发布

您现在位置:Python中文网/ 问答频道 /正文

我现在正在开发一个CentOS集群,并安装了Python2.7。我已经成功地安装了opencv2.4(使用these有用的说明),但它没有3的所有功能(我需要connectedComponents函数和其他几个不可用的函数)。省略“checkout tags”步骤会导致“cmake”过程中出现错误。另外要注意的是,当我尝试安装ffmpeg包时,它会告诉我没有可用的ffmpeg包。错误:

CMake Error at 3rdparty/ippicv/downloader.cmake:77 (message):
  ICV: Failed to download ICV package: ippicv_linux_20151201.tgz.
  Status=6;"Couldn't resolve host name"
Call Stack (most recent call first):
  3rdparty/ippicv/downloader.cmake:110 (_icv_downloader)
  cmake/OpenCVFindIPP.cmake:237 (include)
...

Tags: 函数功能cmake错误tags集群downloaderffmpeg
2条回答

看起来opencv3更适合您正在做的事情,您甚至说过您需要2.7中没有的特性。在

opencv3.0文档实际上有关于在终端中使用Yum特性安装库的最新版本的完整指南。它会带你走过每一步,并详细解释它们,包括似乎给你带来麻烦的Cmake步骤。我建议你看一下指南,它是linked here.

I've managed to get OpenCV 2.4 installed (using these helpful instructions) but it does not have all of the functionality of 3 (I need the connectedComponents function and a couple others not available).

那你为什么不下载OpenCV3呢?在

Something else to note is when I attempt to install the ffmpeg package it tells me no such package is available.

您可以自己从here(该包对您不可用)下载该文件。在

然后将其放在最初下载到的文件夹中:

<your opencv build>/3rdparty/ippicv/

相关问题 更多 >