opencv

Polygon to contour in OpenCV? e.g. an opposite of cvApproxPoly()?

Is there an easy and fast OpenCV solution that will convert a set of CvPoint vertices defining a polygon, to a contour with many more vertices? I have simple polygons in one space, and I want to transform the polygons into another space, where straight lines will become curvy. Thus its important that I add more vertices to my straight l...

Speeding up cvSmooth?

I am building a real-time closed-loop image processing application. I waste at least 3ms using cvSmooth(): cvSmooth(Obj->ImgOrig,Obj->ImgSmooth,CV_GAUSSIAN,Params->GaussSize*2+1); This ends up being the single slowest operation in my entire code. I want to be able to blur my image to varying amounts depending on user input before thre...

How do I detect squares/rectangle or an other shape with EMGU CV?

I want to make an apps detect an square/rectangle in my webcam using EMGU CV (an OPENCV wrapper). The square/rectangle will have a solid color. if it's posible I would like to obtain the width and heigth of the square/rectangle In this video you can see what I would like to do. http://www.youtube.com/watch?v=ytvO2dijZ7A&NR=1 I'm w...

Build the OpenCV 2.0 libraries from source using Visual Studio 2010 Beta and CMake

OpenCV 2.0a does not include pre-compiled OpenCV libraries for Visual Studio users. I am trying to build the libraries from source using Visual Studio 2010 Beta and CMake, but I am getting lot of errors. I even tried generating the libs from dlls using dumpbin but the linker errors are still persisting. Please guide me to generate the st...

cross compilation of opencv for ARM 9 processor

hi all, i need to cross compile opencv for ARM 9 processor. I have the tool chain for the processor but don't know how to cross compile. Can some on please tell me the procedure of cross compiling it for the arm board. Thank you all in advance ...

License plate recognition using OpenCV

I have a project where I need to identify the license plate of a car using OpenCV. I want to load an image of a number or a letter and let OpenCV identify it and print it to the console. Is there a function do this? If not, how can I do it? Note: I am working on gray level Please help, I have to make it a week from now ...

Which is the best algorithm to "Estimate and Visulize 2d skeleton using Opencv" from the drawn contour

Which is the best algorithm to "Estimate and Visulize 2d skeleton using Opencv" from the drawn contour Is the Recursive Centroid algorithm the Best? any reference links or docs please provide ...

Why OpenCV's `cvCreateCameraCapture` and `cvCreateFileCapture` do not work? How can I fix it?

Have an AVI videofile, and a webcam. cvQueryFrame returns null in both cases. Code is applied(only for cam): #include "highgui.h" #include <iostream> using namespace std; int main( int argc, char** argv ) { cvNamedWindow( "KillCam", CV_WINDOW_AUTOSIZE ); cvWaitKey(0); CvCapture* capture = cvCreateCameraCapture(-1); ...

How to create Haar Cascade (xml) for using with OpenCV?

If you familiar with OpenCV library, you know what is haar cascade image object detection. I mean image object detection like human face or something else. I have haar cascade xml for face detection, but i don't know how to create my own. I want to create Haar Cascade xml to detect simple bright circle light sources (i.e. flashing infrar...

What are The opencv function useful for 2d skeleton estimation(ofRecursive centroids)

Possible Duplicate: Which is the best algorithm to Estimate and Visulize 2d skeleton using Opencv from the drawn contour Opencv functions or stepts for 2d skeleton estimation ...

SWIG Python bindings for OpenCV 2.0 with MacPorts

Y'all, I've been at to for 3 days trying to get OpenCV Python binds happening, and I have (the full epic struggle is documented here) but despite turning the SWIG flag on in CMake after installing swig via macports, I'm not getting any SWIG action :( My cmake command looks like: cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFI...

How to count number of lines (Hough Trsnform) in OpenCV

Hi, I am successfully able to detect hair strands in an image as lines. I see that the output image detects each hair as line.I use cvHoughLines2() with method parameter as CV_HOUGH_PROBABILISTIC. Now I want to count these lines.The output image shows 1 or 2 line over each hair.I see that each line is composed of small line segments. And...

Efficient Background subtraction with Opencv

Hi, I want to do background subtraction in a video file using Opencv method. Right now i'm able to do background subtraction, but the problem is that i couldn't get the output in color mode. All the output after subtracting the background is coming in grayscale color mode :(. I want to get the color information to the foreground which i...

OpenCV's IplImage* as function parametr error

Hello. I am using OpenCV library and I want to clone picture in separate function, but I cannot send address to the function IplImage* image = cvLoadImage( path, CV_LOAD_IMAGE_GRAYSCALE ); // loading is ok showFoundPoints(image); // -> here it shows errors ... //my function int showFoundPoints(IplImage*image) {...} And I got t...

Why does this use of Smooth cause Python to crash?

Hi- I'm using Python 2.6 against OpenCV 2.0. I've started a file capture and pulled frames. I've displayed the image to make sure it's valid. When I call this routine, python crashes: def SmoothImage(self,SmoothingMaskSize=3): temp=cv.CreateImage(cv.GetSize(self._lpImage),self._lpImage.depth,self._lpImage.nChannels) cv.Smo...

Java OpenCV Bindings

I am looking for OpenCV java bindings, all the references point to the processing library. I know processing is java but isn't there a standalone java lib? or should just use processing libs? ...

My first attempt at JNI

I have a binarization code in open cv which displaying the binarization of an jpg image. Also i have a Java frame which contain binarization button (simply core java program). When i click this binarization button it'll display the binarization image. So how can i make a interface between open cv and Java? I mean through JNI. Can anybod...

Displaying a cvMatrix containing complex numbers (CV_64FC2)

Hi, I'm new to OpenCV, and I would like to compare the results of a python program with my calculations in OpenCV. My matrix contains complex numbers since its the result of a cvDFT. Python handles complex numbers well and displays it with scientific notation. My C++ program is not effective when trying to use std::cout. I tried to sto...

Which is the best algorithm to "Estimate and Visulize 2d skeleton using Opencv" from the drawn contour

Which is the best algorithm to "Estimate and Visulize 2d skeleton using Opencv" from the drawn contour please suggest? any code or document or links are highly appriciated ...

Display image in second thread, OpenCV?

I have a loop to take in images from a high speed framegrabbger at 250fps. /** Loop processes 250 video frames per second **/ while(1){ AcquireFrame(); DoProcessing(); TakeAction(); } At the same time, I would like the user to be able to monitor what is going on. The user only needs to see images at around 30 fps (or less). Ho...