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
2 answers

MatchTemplate image with image converted to BYTE pointer in OpenCV

I'm loading C++ library from my C# code dynamically. I want to find small image inside large one, converting large image to byte[] and small image read from physical path. When I call imdecode then large_img always returns 0 cols and rows.…
Mr. Blond
  • 1,113
  • 2
  • 18
  • 41
1
vote
0 answers

int object has no attribute __getitem__

I am working on some code to recognises the face and speak someone's name. I am working this code in raspberry pi 3 with opencv 3.1 and python 2.7. This code works fine on windows but when I try it on raspberry, it gives an error: Type error: 'int'…
Sara
  • 11
  • 2
1
vote
0 answers

Unable to stream from multiple USB cameras (OV7725, OpenCV 3.1, Ubuntu 14.04)

I am trying to create a dual camera array utilising ELP USB OV7725 based webcams: ELP 480P Mini Webcam USB2.0 OmniVision OV7725 Color CMOS Sensor VGA USB Camera Module…
1
vote
2 answers

How To Detect Red Color In OpenCV Python?

I am trying to detect red color from the video that's being taken from my webcam. The following code example given below is taken from OpenCV Documentation. The code is given below: import cv2 import numpy as np cap =…
Omee
  • 33
  • 1
  • 3
  • 11
1
vote
2 answers

Detecting colored circle and it's center using OpenCV

I am trying to detect BLUE colored CIRCLE and it's CENTER. Then draw a circle on the detected circle and a very small circle on it's center. But I get a few errors. (I am using OpenCV 3.1.0, Python 2.7 Anaconda 64 bits, PyCharm as an IDE) (Please…
Omee
  • 33
  • 1
  • 3
  • 11
1
vote
0 answers

Building python2.7 bindings for openCV 3.1

I am trying to build opencv 3.1 from source, so that I can use it with python while specifying the "opencv_contrib" package during the build process, which allows me to use SIFT and SURF functionalities. I can't get make to generate the python…
Lake
  • 4,072
  • 26
  • 36
1
vote
1 answer

OpenCV Python - Cannot import contrib modules

I managed to successfully build and install OpenCV 3.1.0 on my laptop. However, on my desktop, any attempt to import a opencv_contrib module into Python fails with the message "cannot import name ...". The DLLs have been generated and the Dependency…
n.jmurov
  • 123
  • 2
  • 12
1
vote
1 answer

OpenCV and Android Studio: "unfortunately app has stopped"

I've trying to access the android camera by using OpenCV. I had success in creating a project and it run without any problem. I tried to use a code from the internet and check it in my project. But, the app stoped. It's seems to be a…
Leonid
  • 21
  • 7
1
vote
2 answers

why cv::cuda::createMedianFilter function is slower than cv::medianBlur?

As you know, Ptr cv::cuda::createMedianFilter (int srcType, int windowSize, int partition=128) function added to OpenCV3.1.0. I'm trying to do a median filter on 8 bit large images (6000*6000) with custom window size(up to 21). I compare…
AmiR Hossein
  • 163
  • 1
  • 11
1
vote
1 answer

OpenCV Canny Edge Detection Python

I get this error: OpenCV Error: Unsupported format or combination of formats() in unknown function, file C:\slave\WinInstallerMegaPack\src\opencv\modules\imgproc\src\canny.cpp, line 67 Traceback (most recent call last): edges=…
TrikiAmine
  • 13
  • 1
  • 5
1
vote
0 answers

Flann in OpenCV - unsupported distance types

I am trying knn search using opencv3.1 and python 3.5. import numpy as np import cv2 vectors = np.random.random([100,15]).astype(np.float32) idx = cv2.flann.Index(vectors, {'algorithm':2}, distType=3) [Out]: cv2.error:…
kampta
  • 4,748
  • 5
  • 31
  • 51
1
vote
1 answer

OpenCV 3.1.0: Save and load trained SVMs

At the moment I am trying to train different SVMs for the recognition of different emotions. So for example to recognize the emotion happy I train a SVM with images of happy people as positives and images where people express other emotions such as…
Plzzz
  • 43
  • 1
  • 1
  • 7
1
vote
0 answers

opencv 3.1 cuda 7.5 building drops Error. LNK2019. Linker is okey in VS 2013

It's not my first openCV build just to know :) Now, I made my own library with cMake with contribute lib.-s and CUDA 7.5. I build 64-bit and my compiler is VS 12 2013 x64 (a read that u cannot use CUDA lib.-s if its not compiled 64-bit.). Now I did…
Twinsy
  • 11
  • 1
1
vote
1 answer

Imgproc.copyMakeBorder in OpenCV 3.1?

I need some methods of OpenCV Java 2.4.9 and 3.1, but 3.1 version Imgproc class has no copyMakeBorder() method, while it was present in version 2.4.9. Note that I can run them successfully if I only choose to add only one of them as library with…
mualloc
  • 495
  • 9
  • 24
1
vote
2 answers

Stat() function returns value -1 and thus, file attributes cannot be accessed. How do I correct this?

This code is the trainer code for facial recognition using OpenCV. It crops and equalizes images to include only the face. The only error that is occurring is that the stat() function returns a value -1 and the files under D:\Project\Original are…