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

compile opencv 3 on ubuntu 16.04 linking error: /usr/lib/x86_64-linux-gnu/libsoxr.so.0: undefined reference to `GOMP_parallel@GOMP_4.0'

Trying to install openCV 3.1, CUDA 8.0.44 on Ubuntu 16.04 by building from the source. The following are the errors I met during the compilation. Scanning dependencies of target opencv_test_video [ 37%] Building CXX object…
Yuan Ma
  • 858
  • 2
  • 11
  • 23
3
votes
1 answer

error with cv2.face.mindistancepredictcollector()

I have installed opencv 3.1.0 with extra modules, but when I try to use >>> s = cv2.face.MinDistancePredictCollector() it returns an error Traceback (most recent call last): File "", line 1, in…
Ahmed Abdeldaim
  • 121
  • 1
  • 11
3
votes
1 answer

OpenCV 3.1.0: /usr/local/include/opencv2/legacy/legacy.hpp can't compile

I'm getting loads of errors like /usr/local/include/opencv2/legacy/legacy.hpp:2994:12: error: 'CvSubdiv2DEdge' does not name a type /usr/local/include/opencv2/legacy/legacy.hpp:3002:12: error: 'CvSubdiv2DPoint' does not name a…
Leontyev Georgiy
  • 1,295
  • 11
  • 24
3
votes
0 answers

OPENCV 3.1 videoio error: v4l: device /dev/video unable to query number of channels

I have a C++ program written with opencv 3.1 on a workstation running ubuntu 12.04. The program captures a frame from a USB camera (/dev/video2) every 5 minutes, does a bit of stuff, and saves the frame to disk. For some reason the program is…
Jason Pitt
  • 31
  • 6
3
votes
1 answer

Error in `make -j4` in opencv3.1 python ubuntu gnome 16.04

[ 41%] Building CXX object modules/dpm/CMakeFiles/opencv_dpm.dir/src/dpm_feature.cpp.o [ 41%] Building CXX object modules/bioinspired/CMakeFiles/opencv_bioinspired.dir/src/retinacolor.cpp.o [ 41%] Building CXX object…
pyofey
  • 298
  • 2
  • 14
3
votes
1 answer

OpenCV image recognition - setting up ANN MLP

I am new in OpenCV world and neural networks but I have some coding experience in C++/Java. I created my first ANN MLP and learned it the XOR: #include #include #include #include…
Michał Lytek
  • 10,577
  • 3
  • 16
  • 24
3
votes
0 answers

How to set parameters for DeepFlow optical flow algorithm

The documentation of cv::optflow::createOptFlow_DeepFlow states: Parameters - class fields - that may be modified after creating a class instance How can one modify these parameters? All one gets is a Ptr and…
Tobias Hermann
  • 9,936
  • 6
  • 61
  • 134
3
votes
3 answers

Hough transform not detecting correct circle

I'm working on a project in which I have to detect Traffic lights (circles obviously). Now I am working with a sample image I picked up from a spot, however after all my efforts I can't get the code to detect the proper circle(light). Here is the…
user6026311
3
votes
1 answer

OpenCV 3.1.0: Accessing single elements from a UMat

I'm currently transferring a program in OpenCV 2.4.9 over to OpenCV 3.1.0, however I've been having trouble changing from Mats to UMats. I use Mats to store pictures that I need to access single binary pixel values from. In 2.4.9 I did it like…
The_Walker
  • 31
  • 1
  • 2
3
votes
1 answer

Setting up OpenCV 3.1 in Visual Studio 2015

I've downloaded opencv 3.1 and I want to start a project in Visual Studio 2015. I don't know how to link this library to my project. Also I want to know if I can continue with this opencv cause it just have a x64 and my project doesn't target on…
Ahmad
  • 87
  • 1
  • 1
  • 9
3
votes
0 answers

OpenCV 3 gives opposite class labels in Gaussian Mixture Model

I'm using OpenCV 3.1.0 to fit a Gaussian Mixture Model to two-class data using EM. The samples are labeled, so I provide the class means and covariances during training by using EM::trainE. When I check the predicted labels, they appear to be…
cccc
  • 47
  • 4
2
votes
0 answers

How to convert cvCreateImage to cv::mat

I am trying to convert this c api to c++ IplImage* hbm0 = cvCreateImage(cvSize(hbmp->width,hbmp->height),hbmp->depth, hbmp->nChannels ); I tried doing like this, cv::Mat hbm0 = cv::Mat(hbmp.cols,hbmp.rows,hbmp.depth(), hbmp.channels() ) since mat…
2
votes
0 answers

Removing artifacts from binary image with same 'weight' as content

I'm doing a document edge detection software. My code works well with the high contrast, smooth background images but now I'm testing it in a complex environment. For example, image below shows my problem Is it possible, using OpenCV to get rid of…
Brlja
  • 364
  • 3
  • 14
2
votes
1 answer

OpenCV DNN, Import .pb file from tensorflow Assertion Failed error: scaleMat.type() == CV_32FC1 in function 'populateNet'

I was trying to import a frozen (and optimized using tensorflow.python.tools.optimize_for_inference ) pb "optimized.pb" file using cv2.dnn.readNetFromTensorflow("optimized.pb") This resulted in the following error: Traceback (most recent call…
2
votes
1 answer

fourier transform opencv python FFT & DFT

How are you? I've been trying to do the fourier transformed and the inverse fourier transformed but i have to do the following. delete all the negative values of the real part and show the result of the reverse transformation. Show an image of the…
santiago
  • 31
  • 5