opencv

Finding location of rectangles in an image with OpenCV

I'm trying to use OpenCV to "parse" screenshots from the iPhone game Blocked. The screenshots are cropped to look like this: I suppose for right now I'm just trying to find the coordinates of each of the 4 points that make up each rectangle. I did see the sample file squares.c that comes with OpenCV, but when I run that algorithm on t...

OpenCV function list

Hi I was wondering if there is some sort of resource where I can find all the functions present in OpenCV and and their declarations; without much theory of any sort. The problem with the OpenCV guide is that there is too much theory that is involved, and I wish to have a reference that can help me, find the function as and when I want t...

OpenCV 1.0: cvCreateFileCapture Always Returns Null under Fedora 11

I'm attempting to open a video file using openCV 1.0's highgui.cvCreateFileCapture(path) function on a Fedora 11 system. Unfortunately, this function is always returning null. I've attempted to use it on a few different video formats, and I've even taken the steps recommend on the openCV wiki (http://opencv.willowgarage.com/wiki/VideoCod...

OpenCV's clustering function cvKMeans2() - what is a type of cluster center in array?

I'm using function cvKMeans2() from OpenCV library for clustering. It has optional parametr: centers - The optional output array of the cluster centers The same parametr is also in function kmeans(). I want to know informations about clusters. But I haven't found what is a type of that cluster center in array, so I can't get it. Thanks...

How to show Iplmage format on the GUI of C++ instead of showing it in another windows?

I'm trying to display the output image onto the C++ interface instead of creating another window to display the image. For example: cvNameWindow("Window A",0); cvShowImage("Window A", imgA); This will create an window and display the imgA on it. My question is that can i display my imgA onto my C++ interface together ...

OpenCV cvLoadImage() does not load images in visual studio debugger?

Hi all, I am trying to work out a simple hello world for OpenCV but am running out of ideas as to why it is not working. When I compile and run this code: #include <cv.h> #include <highgui.h> int main(int argc, char* argv[]) { IplImage* img = cvLoadImage( "myjpeg.jpg" ); cvNamedWindow( "MyJPG", CV_WINDOW_AUTOSIZE ); cvShowImage("M...

Using EXR images in OpenCV

Hi there! I'm currently working on a project with OpenEXR and I would like to implement some Blob detection algorithms. To do this I figured that I could use OpenCV as it says in the documentation that it can open OpenEXR format files. I have all the libraries installed and working as I've been doing other things. I open a simple jpg f...

Confusing errors with opencv cvLoadImage and netbeans

Hi, I found that handy opencv library and tried to program a simple imagemodifier with it using C. When I started to compile my code I got some errors, that are a bit confusing as they doesn't seem to make sense. This is my first time when programming with netbeans and first time I'm trying to make something else than those basic calcul...

detect color space with openCV

how can I see the color space of my image with openCV ? I would like to be sure it is RGB, before to convert to another one using cvCvtColor() function thanks ...

OpenCV detecting an application frame from a set of screenshots

I have this problem, I would like to detect a particular window, from a set of screenshots. If i have 100 screenshots I would like to figure out which ones contain iTunes. I am still a noob when it comes to openCV, do i have to train and create a haar file for this or is there a simpler solution since application frames are not that diff...

How to get opencv include work in kubuntu? (Includes solution to how to include and link in netbeans 6.7.1)

Hi, I have installed opencv c libraries from package management into my Kubuntu 9.10. I wrote a small image modification program that uses those libraries, but I can't compile it, because every time I try to compile I get the error message that the functions from opencv library cannot be found. Those header files are in folder /usr/inc...

Converting a 2D Image to a 1D Vector in OpenCV

Starting with a [M x N] IplImage in OpenCV I want to convert it to a [(M*N) x 1] IplImage, preferably in place or without copying the image row by row; Can this be done though the OpenCV API, using IplImage or CvMat? ...

How can I determine distance from an object in a video?

I have a video file recorded from the front of a moving vehicle. I am going to use OpenCV for object detection and recognition but I'm stuck on one aspect. How can I determine the distance from a recognized object. I can know my current speed and real-world GPS position but that is all. I can't make any assumptions about the object I'm...

how to use opencv to get binaryzation image's histogram

for example I have a binaryzation image like this I want get histogram like this! how to do it use opencv. ...

OpenCV / SURF How to generate a image hash / fingerprint / signature out of the descriptors?

There are some topics here that are very helpful on how to find similar pictures. What I want to do is to get a fingerprint of a picture and find the same picture on different photos taken by a digital camera. The SURF algorithm seams to be the best way to be independent on scaling, angle and other distortions. I'm using OpenCV with th...

Connected Component Labeling in C++

I need to use the connected component labeling algorithm on an image in a C++ application. I can implement that myself, but I was trying to use Boost's union-find/disjoint sets implementation since it was mentioned in the union-find wiki article. I can't figure out how to create the disjoint_sets object so that it'll work with the image...

Compiling OpenCV for Visual C++ 9.0

I looked at many places but could not find anything telling me how to buld the lib files. I know how to link them, but openCV install folder only contains .a files. I cant find an sln file or dsp. How can I make the lib files? Right now all the samples get linker problems because the lib files dont exist. Thanks ...

Using OpenCV to detect a finger tip instead of a face

I'm using the facedetect example and going from there. Right now it only detects faces. Could someone point me in the direction to detect finger tips. Thanks ...

Remove a certain pattern from an image in OPENCV

Hi, I am trying to write a software for document management. First I Input the blank invoice. then feeds the other invoices with data. Using SIFT detectors i get what type of a invoice it is. Then I want to remove the interect of the two images. Basically this will keep only the information and remove the common data on the invoice. I ...

Where can i get OpenCV for python?

Where can i get OpenCV for python?What are the pre-requisites?? i tried to install opencv-python through synaptic package manager but Python says No module named CVtypes ...