opencv-contrib

contrib module missing in opencv 3.0?

醉酒当歌 提交于 2019-12-05 02:05:51
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?

attributeerror: module 'cv2.face' has no attribute 'createlbphfacerecognizer'

蹲街弑〆低调 提交于 2019-12-04 09:05:56
So i'm doing a little personal project but i keep getting this error when I try to create the recognizer. i have opencv-contrib and everything. Does anyone know whats going on? code posted below import cv2, os import numpy as np from PIL import Image cascadePath = "haarcascade_frontalface_default.xml" faceCascade = cv2.CascadeClassifier(cascadePath) recognizer = cv2.face.createLBPHFaceRecognizer() it gets caught on that last line. I've tried reinstalling all modules already. Not really sure what else to do. The weird thing is it works on my laptop but not my desktop. They both have the same

PyCharm: Installation of non-free OpenCV modules for operations like SIFT, SURF

为君一笑 提交于 2019-12-02 06:58:21
问题 I want to use functions like SIFT, SURF,etc. I am using Ubuntu 16.04 on a virtual machine with OpenCV 3.4.1 and using PyCharm as the IDE. I can open Pycharm, create a project, go to file - settings - Project interpreter and download the modules I need.I have downloaded opencv-python and opencv-contrib-python. But I still am not able to use the above mentioned fucntions. Please help. Thanks. 回答1: With OpenCV 3, the non-free modules, namely SIFT and SURF , which are patented by their respective

PyCharm: Installation of non-free OpenCV modules for operations like SIFT, SURF

半腔热情 提交于 2019-12-02 06:39:42
I want to use functions like SIFT, SURF,etc. I am using Ubuntu 16.04 on a virtual machine with OpenCV 3.4.1 and using PyCharm as the IDE. I can open Pycharm, create a project, go to file - settings - Project interpreter and download the modules I need.I have downloaded opencv-python and opencv-contrib-python. But I still am not able to use the above mentioned fucntions. Please help. Thanks. With OpenCV 3, the non-free modules, namely SIFT and SURF , which are patented by their respective creators, were moved out of the default OpenCV install and into the opencv_contrib package. The

OpenCV install opencv_contrib on Windows

为君一笑 提交于 2019-11-27 19:30:16
I am using OpenCV 3.1.0 , Python 2.7.11 and Windows 10. I want to build the extra modules ( opencv_contrib ) into OpenCV. I follow the step in this GitHub . $ cd <opencv_build_directory> $ cmake -DOPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules <opencv_source_directory> $ make -j5 When I type cmake _DOPENCV_EXTRA_MODULES_PATH=C:\opencv_contrib\opencv_contrib/modules C:\opencv\sources , there is an error . I am looking for help how can I solve it. Thank you. Tes3awy Update 29-5-2017: This also works with OpenCV 3.2.0-dev. Now using Visual Studio 2015 or 2017 gives no errors . The cv2.pyd is

OpenCV install opencv_contrib on Windows

不打扰是莪最后的温柔 提交于 2019-11-26 19:53:27
问题 I am using OpenCV 3.1.0 , Python 2.7.11 and Windows 10. I want to build the extra modules ( opencv_contrib ) into OpenCV. I follow the step in this GitHub. $ cd <opencv_build_directory> $ cmake -DOPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules <opencv_source_directory> $ make -j5 When I type cmake _DOPENCV_EXTRA_MODULES_PATH=C:\opencv_contrib\opencv_contrib/modules C:\opencv\sources , there is an error . I am looking for help how can I solve it. Thank you. 回答1: Update 29-5-2017: This also