Questions tagged [opencv3.1]

Use this tag only for questions that are specific to version 3.1 of OpenCV, for general questions use the [opencv] tag.

OpenCV is an open source computer vision library

Version 3.1 released in December 2015. Its documentation can be found here.

For more information, see .

340 questions
1
vote
0 answers

importing a cpp project build with cmake in android using ndk

I have a Cpp project that use OpenCV. I build it using cmake here is the CMakeLists.txt: set(CMAKE_CXX_STANDARD 11) find_package( OpenCV 3.1.0 REQUIRED core text) include_directories( ${OpenCV_INCLUDE_DIRS}) set(OpenCV_LIBS opencv_core…
BenNG
  • 531
  • 1
  • 4
  • 12
1
vote
1 answer

How to set the number of keypoints(Descriptors) in SIFT algorithm in python using openCV 3.1?

In opencv 3.0 and previous versions , the number of keypoints in SIFT can be limitize by using the code : kp, des = cv2.SIFT(150).detectAndCompute(pic, None) But as in opencv 3.1 , SIFT is moved to xfeatures2d so this function is giving error How…
1
vote
1 answer

Failure on warpPerspective

I am comparing two images using findHomography(). I have added extra modules from opencv_contrib in OpenCV 3.1.0 to use Surf and Sift algorithms and to compile for latest Android architectures. I can successfully compile the libraries using…
Shahzeb
  • 3,696
  • 4
  • 28
  • 47
1
vote
2 answers

Python OpenCV 3.1: KNN not working with the example in docs

I was trying to get the example on the docs page working. cv2.KNearest() has been replaced with cv2.ml.KNearest_create(). However, the following code snippet still results in an error: #!/usr/bin/python3 import cv2 import numpy as np import…
1
vote
1 answer

No makefile created for opencv_contrib

I'm trying to add the opencv_contrib package to my OpenCV 3.1 build. I am currently using the library in Microsoft Visual Studio 15. I have installed Cmake and GNU Make, cloned the opencv_contrib repo, and followed the instructions on…
T. Soemod
  • 91
  • 2
  • 7
1
vote
0 answers

why when i use make for instalation opencv show me this errors?

i use this cmake for installation opencv cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D INSTALL_C_EXAMPLES=OFF \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \ -D…
RezaOptic
  • 310
  • 1
  • 4
  • 16
1
vote
1 answer

OpenCV 3.1.0 with Python 3.5

After following several different tutorials, guides and steps recommended in other SO answers I didn't manage to install OpenCV for use with Python 3.5 in my Ubuntu 16.04 system. As long as OpenCV 3.1.0 officially supports Python 3.x, how do I…
Rodrigo Oliveira
  • 1,452
  • 4
  • 19
  • 36
1
vote
1 answer

object has no attribute 'NamedWindow'

import cv2 as cv cv.NamedWindow("window_a", cv.CV_WINDOW_AUTOSIZE) AttributeError: 'module' object has no attribute 'NamedWindow' What is the analogue of this function in OpenCV 3?
Timur Musharapov
  • 163
  • 1
  • 1
  • 13
1
vote
0 answers

CMake error when compiling OpenCV with extra modules

I'm working (more like trying to work as you'll see in a moment) on a project with OpenCV and I'm having issues with the compilation of the OpenCV framework with the extra modules. (I know you can get pre-compiled libraries from OpenCV site but I'd…
Marchius
  • 115
  • 1
  • 3
  • 10
1
vote
1 answer

How do I call line or cv::line with OpenCV 3.1?

The tutorial I'm following has code like the following: line( img_matches, ..., ..., Scalar( 0, 255, 0), 4 ); where img_matches is just a Mat, the next two arguments are points and then there's a color and a width. I have figured out everything…
James Waldrop
  • 545
  • 4
  • 17
1
vote
1 answer

How to classify object from webcam in python

I am trying to classify object captured from my embedded webcam on my laptop using python. Below are the code that I modified from this link http://www.pyimagesearch.com/2016/08/10/imagenet-classification-with-python-and-keras/ from…
Ling
  • 891
  • 5
  • 17
  • 40
1
vote
1 answer

Build-in function for interpolating single pixels and small blobs

Problem Is there a build-in function for interpolating single pixels? Given a normal image as Mat and a Point, e.g. an anomaly of the sensor or an outlier, is their some function to repair this Point? Furthermore, if I have more than one Point…
Phann
  • 1,283
  • 16
  • 25
1
vote
2 answers

cv.cvtColor(img, cv.COLOR_BGR2GRAY) doesn't work

This is my first attempt to detect faces and eyes in OpenCV 3.1. Here is my code: import cv2 as cv import numpy as np face_cascade = cv.CascadeClassifier('haarcascade_frontalface_default.xml') eye_cascade =…
Burak
  • 29
  • 1
  • 9
1
vote
0 answers

Eye Tracking for Eye Controlled Wheel Chair OpenCV+Python

I am trying to implement a code the get the centroid of the eye and track the eye movement to control a wheel chair. The code applied on an image is: import cv2 import numpy as np image = cv2.imread('eye pupil.jpg') gray = cv2.cvtColor(image,…
Tes3awy
  • 2,166
  • 5
  • 29
  • 51
1
vote
1 answer

Procedure to build opencv 3.1 from source for Python 3.5 - 32 bit on Windows 10 for Ximea support

I had a lot of trouble while building opencv 3.1 from source code with Python 3.5 -32 bit on Windows 10. For any custom build, its a painfully long procedure which has to be followed meticulously. My purpose was to enable Ximea support with OpenCV…
amathur45
  • 31
  • 3