contrib module missing in opencv 3.0? up vote 3 down vote favorite I am using OpenCV 3.0 beta.
来源:互联网 发布:caffe on spark 编辑:程序博客网 时间:2024/06/01 10:06
contrib module missing in opencv 3.0?
up vote3 down vote favorite
I am using OpenCV 3.0 beta.
I tried to create a face recogniser using createLBPHFaceRecognizer(); class as,
**Ptr <FaceRecognizer> model = createLBPHFaceRecognizer();**
the error I have is
**error: 'createLBPHFaceRecognizer' was not declared in this scope**
I have researched and found that the class exists in contrib
module of opencv2 (opencv2/contrib/contrib.hpp) in previous versions of OpenCV
But this module is not available in opencv 3.0 beta. So where are the recogniser classes defined in opencv 3.0?
If they are not defined,how can we add this module in addition to the existing modules?
c++opencv image-processing opencv3.0
add a comment
1 Answer
activeoldest votes
up vote2 down vote accepted
you will have to download and build the opencv_contrib repo.
after running cmake, make, make install,
#include <opencv2/face.hpp>// note the additional namespace: cv::Ptr <cv::face::FaceRecognizer> model = cv::face::createLBPHFaceRecognizer();// proceed as usual
show4 more comments
0 0
- contrib module missing in opencv 3.0? up vote 3 down vote favorite I am using OpenCV 3.0 beta.
- How do I quickly switch between workspaces in unity? up vote 41 down vote favorite 8 I'm using U
- vote
- vote
- Vote
- 16 down vote favorite 2 Here's a preview of the status running supervisorctl status every 2 seconds
- opencv contrib-master ximgproc module doc note
- opencv contrib-master cnn_3dobj module doc note
- OpenCV 3.0.0+contrib+VS2013配置方法
- opencv 3.0 DPM cascade contrib模块
- HDU2535:Vote
- Vote 2535
- hdu2535 Vote
- hdu2535:Vote
- Majority Vote
- I am Down
- Setting up OpenCV in Eclipse
- How to capture a webcam input Up-vote
- IOS MapKit学习笔记
- Qt设计器中,使用QToolBar控件的技巧
- HDFS浅析
- Android Studio下Android客户端短信验证(详细+错误处理)
- xcode7 找不到.dylib
- contrib module missing in opencv 3.0? up vote 3 down vote favorite I am using OpenCV 3.0 beta.
- 数据库优化设计方案有哪些?
- 奔向家的喜悦
- ceph部署过程
- UI一揽子计划 16 (网络编程、HTTP协议、iOS 实现网络编程、服务器接口)
- NsDate
- 使用python进行文本分类
- iOS9适配
- 面试官有问题?我看是你有问题吧!
-DOPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules
and re-build themain opencv repo, not seperated. – berak Feb 4 at 14:49