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

OpenCV pixel lump detection (detecting white pixel lump)

So, I have the following Image I want to detect the white lump in that image ignoring the thin white line. I need help with the approach that I can use to detect it with OpenCV python. Please help, I don't want the code but need a direction on how…
Dhiraj kadam
  • 377
  • 3
  • 15
2
votes
1 answer

opencv make error: limits.h no such file of directory

I am getting the following error when I execute the make command in ubuntu 16.04 terminal. Please let me know, How an I fix? (cv) mallikarjun@mallikarjun-ideapad-z570:~/opencv-3.1.0/build$ make [ 0%] Building C object…
2
votes
1 answer

Facemark or Kazemi in Android

I have been working on integrating OpenCV in android and i am able to do it successfully. Through the Java presets and Haarcascades i am able to detect Face, Nose, Mouth at runtime. Now may next task is to detect facial landmarks at runtime. After…
2
votes
1 answer

opencv: negative result of matchTemplate with CCOEFF_NORMED

I get several app icons and resize to 36*36. I hope to get similarity between any two of them. I have made them black and white with opencv function threshold. I follow instruction from other questions. I apply matchTemplate with method…
G_cy
  • 994
  • 3
  • 13
  • 28
2
votes
1 answer

Creating Bounding boxes for contours

I used this code to draw "Bounding boxes". Now I want the largest rectangle while there are many rectangles. After finding the largest rectangle, I want to have the coordinates of this rectangle. By these coordinates, I want to be a part of the…
kasra
  • 55
  • 7
2
votes
3 answers

Getting Rid of Lines in OpenCV-Python

Like I converted my original input to HSV color space image & applied the INRANGE function and found the green & blue lines & now i want to get rid of them and I want the image to look like in output....how shall i now get rid of the lines &…
2
votes
1 answer

GStreamer-CRITICAL **: gst_element_make_from_uri: assertion 'gst_uri_is_valid (uri)' failed

I am in Ubuntu 16.04 using OpenCV 3.1 in Python. I can run this fine for a large number of videos however in this particular video it fails. I am using XVID as coded. The URI seems to be correct so I'm at a loss here... Below is the full error (I…
Pedro Abreu
  • 89
  • 1
  • 1
  • 9
2
votes
1 answer

How to calculate histogram of an image?

How can I solve the below error? import cv2 img= cv2.imread('/home/monojit/Desktop/crop.jpg') hsv= cv2.cvtColor(img, cv2.COLOR_BGR2HSV) hist= cv2.calcHist([hsv],[0,1],None,[256],[0,256]) print(hist) cv2.imshow('img',hsv) …
Monojit Sarkar
  • 657
  • 1
  • 5
  • 15
2
votes
1 answer

cv2.imread: how to keep color channel when reading in grayscale image

i am trying to load an grayscale image with opencv2, but somehow the color channel gets completely removed. When i am doing: img = cv2.imread(PATH_TO_IMAGE, 1) // load image as rgb img.shape returns for example (28,28,3) But if i am loading the…
Tim
  • 10,459
  • 4
  • 36
  • 47
2
votes
1 answer

OpenCV how to detect a specific color in a frame (inRange function)

I am able to use the code below to find anything blue within a frame: How To Detect Red Color In OpenCV Python? However I want to modify the code to look for a very specific color within a video that I have. I read in a frame from the video file,…
2
votes
1 answer

How to save a Tensorflow model ( which doesnt contain any variable ) to port it in OpenCV

I wanted to know what is the correct way to save a tensorflow model that I have trained in python so that I can import it in OpenCV using the dnn module of opencv. This is my Tensorflow graph X = tf.placeholder(tf.float32,…
Ayush Pandey
  • 565
  • 6
  • 19
2
votes
1 answer

which libraries should I link to build opencv 3.2

Building opencv with contributions using this guide: http://docs.opencv.org/trunk/d3/d52/tutorial_windows_install.html instead of cmake gui, i use: cmake -DOPENCV_EXTRA_MODULES_PATH=E:\work\opencv2\opencv_contrib/modules E:\work\opencv2\opencv…
hagor
  • 304
  • 1
  • 15
2
votes
0 answers

How can I ignore small imperfections in, mostly rectangular, contour when creating it's bounding rectangle?

I am using this image as an example: What I want, is to identify a bounding rectangle that's close to the original rectangle part, ignoring most of the imperfections outside of it. What I get right now is this (contour and bounding rectangle…
Thums
  • 187
  • 7
2
votes
1 answer

Building an OpenCV Application with Static Libraries

Edit: Problem solved after a few steps. You can take a look at my post on the OpenCV Q&A page. http://answers.opencv.org/question/152366/build-application-with-static-libraries/ I'm trying to statically link my C++ (CMake) application to run on…
user3790180
  • 433
  • 5
  • 12
2
votes
2 answers

How to fix Python version error when trying to download opencv3?

I have Anaconda installed and I used the following command in the Command Prompt: conda install -c menpo opencv3 Which returned this error: UnsatisfiableError: The following specifications were found to be in conflict: - opencv3 -> python 2.7* -…
J. Doe
  • 338
  • 2
  • 4
  • 9