Skip to main content

Questions tagged [opencv]

OpenCV (Open Source Computer Vision) is a library for real time computer vision. When using this tag, please add a language specific tag (python, c++, ...), if relevant.

opencv
1912 votes
23 answers
242k views

Image Processing: Algorithm Improvement for 'Coca-Cola Can' Recognition

One of the most interesting projects I've worked on in the past couple of years was a project about image processing. The goal was to develop a system to be able to recognize Coca-Cola 'cans' (note ...
Charles Menguy's user avatar
457 votes
26 answers
2.2m views

Cannot find module cv2 when using OpenCV [duplicate]

I have installed OpenCV on the Occidentalis operating system (a variant of Raspbian) on a Raspberry Pi, using this script by jayrambhia. It installed version 2.4.5. When I try import cv2 in a Python ...
user2971844's user avatar
  • 4,603
428 votes
3 answers
273k views

Simple Digit Recognition OCR in OpenCV-Python

I am trying to implement a "Digit Recognition OCR" in OpenCV-Python (cv2). It is just for learning purposes. I would like to learn both KNearest and SVM features in OpenCV. I have 100 samples (i.e. ...
Abid Rahman K's user avatar
415 votes
12 answers
1.0m views

How to crop an image in OpenCV using Python

How can I crop images, like I've done before in PIL, using OpenCV. Working example on PIL im = Image.open('0.png').convert('L') im = im.crop((1, 1, 98, 33)) im.save('_0.png') But how I can do it ...
Nolik's user avatar
  • 4,453
396 votes
10 answers
26k views

How to detect a Christmas Tree?

Which image processing techniques could be used to implement an application that detects the Christmas trees displayed in the following images? I'm searching for solutions that are going to work ...
karlphillip's user avatar
318 votes
45 answers
1.0m views

How do I install Python OpenCV through Conda?

I'm trying to install OpenCV for Python through Anaconda, but I can't seem to figure this out. I tried conda install opencv conda install cv2 I also tried searching conda search cv No cigar. I ...
Chet's user avatar
  • 19.4k
272 votes
24 answers
920k views

How do I install opencv using pip?

I need to install cv2 for a script that has been written for me. I tried pip install cv2 and pip install open_cv and got the same problem - a warning message from dist.py and complains about zlib ...
Ian Boag's user avatar
  • 2,892
257 votes
14 answers
615k views

Python - Extracting and Saving Video Frames

So I've followed this tutorial but it doesn't seem to do anything. Simply nothing. It waits a few seconds and closes the program. What is wrong with this code? import cv2 vidcap = cv2.VideoCapture('...
Rontron's user avatar
  • 4,153
245 votes
35 answers
668k views

ImportError: numpy.core.multiarray failed to import

I'm trying to run this program import cv2 import time cv.NamedWindow("camera", 1) capture = cv.CaptureFromCAM(0) while True: img = cv.QueryFrame(capture) cv.ShowImage("camera&...
user avatar
234 votes
9 answers
175k views

Simple and fast method to compare images for similarity

I need a simple and fast way to compare two images for similarity. I.e. I want to get a high value if they contain exactly the same thing but may have some slightly different background and may be ...
Albert's user avatar
  • 67.2k
231 votes
12 answers
195k views

Is there a way to detect if an image is blurry? [closed]

I was wondering if there is a way to determine if an image is blurry or not by analyzing the image data.
Sam's user avatar
  • 4,857
223 votes
5 answers
654k views

How to resize an image with OpenCV2.0 and Python2.6

I want to use OpenCV2.0 and Python2.6 to show resized images. I used and adopted this example but unfortunately, this code is for OpenCV2.1 and does not seem to be working on 2.0. Here my code: import ...
Bastian's user avatar
  • 9,725
217 votes
6 answers
47k views

How to remove convexity defects in a Sudoku square?

I was doing a fun project: Solving a Sudoku from an input image using OpenCV (as in Google goggles etc). And I have completed the task, but at the end I found a little problem for which I came here. ...
Abid Rahman K's user avatar
205 votes
6 answers
271k views

Checking images for similarity with OpenCV

Does OpenCV support the comparison of two images, returning some value (maybe a percentage) that indicates how similar these images are? E.g. 100% would be returned if the same image was passed twice, ...
Boris's user avatar
  • 8,801
204 votes
11 answers
927k views

How to display an image

I tried to use IPython.display with the following code: from IPython.display import display, Image display(Image(filename='MyImage.png')) I also tried to use matplotlib with the following code: ...
FiReTiTi's user avatar
  • 5,826

15 30 50 per page
1
2 3 4 5
4905