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
2
votes
1 answer

compare histogram comparison method isn't working in opencv 3.1.0

I have to compare two images using cv2.compareHist() function. But I got error on the comparison method i.e. CV_COMP_CORREL. I use OpenCV 3.1.0. Error is NameError: name 'CV_COMP_CORREL' is not defined. I tried with cv.CV_COMP_CORREL and…
dip deb
  • 69
  • 3
  • 14
2
votes
2 answers

How to convert the Mat object to a Bitmap while perserving the color?

In the App I am developing I open the Camera using OpenCV4Android using CameraBridgeViewBase.CvCameraViewListener2 and when I touch the screen I set that frame as an image inside an ImageView as shown below in the code. the problem is the image set…
Amrmsmb
  • 1
  • 27
  • 104
  • 226
2
votes
1 answer

Undefined references in static OpenCV libraries

I have a project in C++ that uses OpenCV 3.1 and works fine using shared libaries. But now I want to compile it using static libraries (located in a folder within the project directory) because I want to be able to export it (and also edit and…
Leonardo Lanchas
  • 1,616
  • 1
  • 15
  • 37
2
votes
0 answers

OpenCV stitcher fails to stitch undistorted images

I am trying to stitch a panorama using mobile phone camera with an attachable 170 degree wide angle lens. The resulting photo is distorted (fisheye). I understand that to stitch these photos using Stitcher::stitch(InputArrayOfArrays images,…
Kevin
  • 321
  • 1
  • 8
2
votes
1 answer

OpenCV3.10 core.hpp must be compiled in C++

i have installed OpenCV 3.10 and the linked the opencv_world310.lib to release and opencv_world310d.lib to debug. Moreover I put the compiler options in search directory to ...opencv\build\include. I got a undefined reference error when i left out…
albert
  • 113
  • 1
  • 12
2
votes
0 answers

Python OpenCV 3.1.0 `CascadeClassifier.detectMultiScale3()` gives different bounding box

Code: cascade = cv2.CascadeClassifier(CASCADE_XML_PATH) result = cascade.detectMultiScale(greyscale_image, scaleFactor=1.05, minNeighbors=1, minSize=(200, 200), flags=0) print(result) result2 = cascade.detectMultiScale2(greyscale_image,…
Ray
  • 7,833
  • 13
  • 57
  • 91
2
votes
0 answers

The exact build configuration of pre-built OpenCV 3.1 on Windows

I recently use the pre-built OpenCV 3.1.0 on Windows which was downloaded from here. Actually, I followed the official installation. The thing is that I find that the VideoCapture module of pre-built OpenCV processes video very slowly. It seems that…
Daniel
  • 2,195
  • 3
  • 14
  • 24
2
votes
3 answers

Opencv3: Error when import cv2 in python OSX el capitan

I was installed OpenCV 3.1 on mac OSX, I also create a symlink in /Library/Python/2.7/site-packages: cv2.so -> /usr/local/Cellar/opencv3/3.1.0_3/lib/python2.7/site-packages/cv2.so But when I import cv2 in terminal i got this error: >>> import…
QuanDT
  • 29
  • 3
2
votes
0 answers

Save FileStorage OpenCV + Python

I am trying to extract keypoints from an image. The image is a frame from a video I captured myself. I already extracted the keypoints using SURF. I found cv2.FileStorage and cv2.FileNodein the help but I don't know how to use them.…
Tes3awy
  • 2,166
  • 5
  • 29
  • 51
2
votes
2 answers

OpenCV display image in fullscreen on Mac without white border

I'm running opencv version 3.1.0 and python 2.7 on Mac OSX 10.9 and want to display a black image on fullscreen. My screen's resolution is 2880x1800. However when I attempt to do so, there is a large white border on the top of the screen. Here's my…
user3543300
  • 499
  • 2
  • 9
  • 27
2
votes
1 answer

Error C1083 Cannot open include file: 'opencv2\opencv.hpp' in VS 2015

I am trying to run the simple test code below on Visual Studio 2015 with OpenCv 3.1 on windows 10. #include using namespace cv; int main() { namedWindow("win"); waitKey(0); return 1; } But i get Error C1083 Cannot open…
Suleiman
  • 316
  • 1
  • 4
  • 15
2
votes
1 answer

OpenCV 3.1 ANN predict returns nan

I am trying to implement Neural network with OpenCV ANN Library. I had a working solution, but after upgrading to OpenCV 3.1 it stopped working. So I created a simplified code for testing, but problem still remains. ANN is successfully trained, but…
Theese
  • 91
  • 9
2
votes
0 answers

Build x64 Libraries for OpenCV 3.1 on Windows 10 with Visual Studio 2015

I've downloaded OpenCV 3.1 from the OpenCV website and am attempting to build static x64 libraries. I am following the procedure outlined here, http://docs.opencv.org/3.1.0/d3/d52/tutorial_windows_install.html#gsc.tab=0 and am using CMake 3.5 to…
user3881521
  • 95
  • 1
  • 7
2
votes
2 answers

How to create Trackbars which do not call any function? OpenCV 3.1 with Python 2.7

I'm trying to threshold an image. I have used the cv2.createTrackbar function as- cv2.createTrackbar('High H','image',0,179, None). Now the last part is what I'm having trouble with. Further in my code, I use highH = cv2.getTrackbarPos('High…
user6026311
2
votes
2 answers

OpenCV 3.1 UMat assignment

I am trying to implement a performance upgrade to the project of my company. The project depends on OpenCV and recently I have successfully upgraded to OpenCV 3.1 to use UMat. Though I cant find a complete tutorial on it except basic operations. So…
dramaticlook
  • 653
  • 1
  • 12
  • 39