关于安装pycv中遇到的各种问题解决方法

图片/视频人脸检测相关文章地址:

http://abruzzi.javaeye.com/blog/463668

http://dataming.blog.163.com/blog/static/10195189820097855650655/

pycv下载地址:http://sourceforge.net/projects/pycv/files/Development%20Release/0.3.0/pycv-0.3.0.zip/download

 

在安装pycv之前,需要安装numpy和scipy,我们可以通过apt-get install 来安装:

sudo apt-get install python-numpy

sudo apt-get install python-scipy


error: ‘memcpy’ was not declared in this scope

解决方法:在pycv文件路径下/pycv/libraries/sdcpp/SdSRFeature.cpp中加入#include <string.h>,如果其他文件中出现此问题,同样做法。

 

error: ‘upper_bound’ was not declared in this scope

解决方法:在pycv文件下路径/pycv/libraries/sdcpp/uac.cpp中加入#include <algorithm>,如果其他文件中出现此问题,同样做法。

帮助网址:http://www.sgi.com/tech/stl/upper_bound.html

文字如下:

  Definition

  Defined in the standard header algorithm, and in the nonstandardbackward-compatibility header algo.h.

 

完成以上后可以安装pycv:

 

此时可以安装pycv,在文件目录下通过sudo python setup.py install来安装

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值