Questions tagged [opencv-contrib]

OpenCV is an open source computer vision library, free for commercial and research use. opencv-contrib is a repository containing extra OpenCV modules and contributed functionality.

Documenation for opencv_contrib can be found at http://docs.opencv.org/3.1.0/d3/d81/tutorial_contrib_root.html

82 questions
27
votes
3 answers

Module 'cv2.cv2' has no attribute 'ximgproc'

I am trying to perform a selective search to an image using OpenCV but when I run my code I get this: >>> import cv2 >>> ss = cv2.ximgproc.segmentation.createSelectiveSearchSegmentation() Traceback (most recent call last): File "", line 1,…
Guillem
  • 2,376
  • 2
  • 18
  • 35
15
votes
5 answers

ImportError: cannot import name 'dnn_superres' for python example of super resolution with opencv

I am trying to run an example for upscaling images from the following website: https://towardsdatascience.com/deep-learning-based-super-resolution-with-opencv-4fd736678066 This is the code I am using: import cv2 from cv2 import dnn_superres #…
Al Jenssen
  • 655
  • 3
  • 9
  • 25
15
votes
5 answers

OpenCV install opencv_contrib on Windows

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 $ cmake -DOPENCV_EXTRA_MODULES_PATH=/modules…
VICTOR
  • 1,894
  • 5
  • 25
  • 54
9
votes
3 answers

contrib module missing in opencv 3.0?

I am using OpenCV 3.0 beta. I tried to create a face recogniser using createLBPHFaceRecognizer(); class as, **Ptr model = createLBPHFaceRecognizer();** the error I have is **error: 'createLBPHFaceRecognizer' was not…
8
votes
22 answers

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

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…
Zack Shadid
  • 81
  • 1
  • 1
  • 3
7
votes
1 answer

How to perform scale and rotation invariant template(feature) matching and object detection in opencv python

I need code for detecting objects that are scale and rotational invariant.There are 8 pen drives in the picture which are varied by size and rotational angle . i am able to detect only few pen drives with matchTemplate() .I need code with SURF,BRIEF…
Ajith
  • 367
  • 2
  • 6
  • 15
4
votes
0 answers

What model is needed to detect facemark by using OpenCV_Contrib?

I'm trying to detect the landmarks of human face by using OpenCV_Contrib. However, there are some problems to detect face landmarks. I received one answer that I need to use…
Hsmlee
  • 61
  • 2
3
votes
2 answers

How do I build OpenCV Contrib modules?

I have downloaded the file opencv_contrib_python-4.4.0.46-cp38-cp38-manylinux2014_x86_64.whl from https://pypi.org/project/opencv-contrib-python/4.4.0.46/#files I open the whl file and see that it contains a folder called opencv_contrib_python.libs…
Harry Boy
  • 4,159
  • 17
  • 71
  • 122
3
votes
2 answers

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

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…
Winbuntu
  • 127
  • 1
  • 4
  • 15
3
votes
1 answer

opencv error file cannot be opened for reading cv::face::FaceRecognizer::read windows

I have been trying to run a django application (attendance system with face recognition). I'm using python with opencv3.2 and after installing both opencv-python and opencv-contrib-python using pip on anaconda framework, i still get error like this …
raghav kharbanda
  • 31
  • 1
  • 1
  • 3
3
votes
1 answer

OpenCV C++ Error with sinusoidal pattern generation - structured_light library

I am trying to use the sinusoidal pattern tool in C++ with Visual Studio. I have placed the code that I am testing this with below. In visual studio everything looks fine bar the red squiggle under params in the following…
2
votes
1 answer

Error creating OpenCV Non Free build v4.3, collapsable.cpp -errors C2039, 2605

This may be a simple problem but this is my first use of cmake and first complicated build so I don't know what to try next. My current experience is Python and Java. I have searched Stackoverflow and OpenCV but did not find an answer that I…
Roo
  • 141
  • 2
  • 6
2
votes
1 answer

How to install OpenCV with contrib modules in Windows 10 on Visual Studio 2019

I am trying to install OpenCV with contrib modules for Visual Studio 2019 on a Windows 10 machine. I previously had a working version in Visual Studio 2017, but have been unable to get either 2019 or 2017 working recently. I have been using CMake to…
2
votes
1 answer

ximgproc (opencv-contrib sub-module) installed successfully but i am getting AttributeError

I installed opencv-contrib that has ximgproc as a sub-module, using this: pip install opencv_python-3.2.0+contrib-cp36-cp36m-win_amd64.whl when I run below lines: import cv2 # ... right_matcher = cv2.ximgproc.createRightMatcher(left_matcher) I…
ffletcherr
  • 65
  • 1
  • 8
2
votes
1 answer

ICP::registerModelToScene() fails to run minimum example

Here is a minimal example of calling registerModelToScene(), enclosed in class cv::ppf_match_3d::ICP of the OpenCV contribution module surface matching: #include #include…
Max Herrmann
  • 305
  • 2
  • 15
1
2 3 4 5 6