opencv

How do I capture images in OpenCV and saving in pgm format?

Hi folks, I am brand new to programming in general, and am working on a project for which I need to capture images from my webcam (possibly using OpenCV), and save the images as pgm files. What's the simplest way to do this? Willow Garage provides this code for image capturing: http://opencv.willowgarage.com/wiki/CameraCapture Using...

OpenCV: Getting and Setting Camera Settings

I have been searching around and can't find an example of how to get and set the camera capturing settings. For example the capturing resolution, fps, color balance, etc. I have only seen examples of how to change the settings when saving the captured video but I want to be able to find all the camera's capturing modes and choose which...

Where does opencv install it's libs in ubuntu

I have ubuntu 10 installed. I installed all the opencv packages I could find in the software center. I expect that it installs some .lib files somewhere that I can reference in my project, but I can't find them. Where does it put them? I want to use eclipse as the ide programming in c++, but I am having problems finding out how to ge...

Construct OpenCV element type in runtime

In OpenCV, when I need to create a cv::Mat, I will need to do something along the line of cv::Mat new_mat(width, height, CV_32FC3) What happens if I only know that I need the elements to be either float or double + whether I need 1/2/3 channels in runtime? In other words, given the element type (float) and number of channel (int), ho...

OpenCV 1.1 K-Means Clustering in High Dimensional Spaces

Hi I am trying to write a bag of features system image recognition system. One step in the algorithm is to take a larger number of small image patches (say 7x7 or 11x11 pixels) and try to cluster them into groups that look similar. I get my patches from an image, turn them into gray-scale floating point image patches, and then try to ge...

Blob Detection OpenCV

Hi, Typically how much time would it take to capture an image feed from a webcam and detect a blob in it? Can it be done real time? I am new to OpenCV, wanted to clarify few things before I jump in to coding. thanks ...

Masking frequencies in a Fourier Transform

I'm messing around with OpenCV, and am trying to do some of the same stuff signal processing stuff I've done in MatLab. I'm looking to mask out some frequencies, so I have constructed a matrix which will do this. The problem is that there seem to be a few more steps in OpenCV than in Matlab to accomplish this. In Matlab, it's simple enou...

How to include OpenCV libraries or any libraries in a makefile

Hi All, I'm writing a makefile for a project. The project makes use of OpenCV. I have installed the OpenCV 2.1, now, how can I include the OpenCV libraries into the makefile? When I had the same project in a non-makefile type project environment, I used to point to these libraries in the Project Properties of Eclipse. As given below - ...

Library issues with OpenCV

Hi, When I downloaded OpenCV and installed, In the lib folder the files are of the format "libcv200.dll.a" I don't know if they actually need to have a .lib extension. I am working with Visual C++. When I included all the Additional Directories as specified in the OpenCV documentation, while building a project, I get this error; Erro...

Perspective detection with OpenCv

If I want to detect perspective distorted objects (e.g rectangles) and calculate the correction transformation, what would be a good method? For example, I have a lot of photos of papers lying on a flat surface (the photos are shot from an angle), and I want to correct the perspective and crop them. I am thinking of using the OpenCv Py...

installing Opencv on mac os x 10.6 for use with Xcode 3.2.2 project

I am trying to install OpenCV on my Mac (OS X v10.6.3) for use with an Xcode (v 3.2.2) project. I have downloaded the current OpenCV tar ball from SourceForge, and am following these installation instructions: http://opencv.willowgarage.com/wiki/Mac_OS_X_OpenCV_Port (scroll down to the section called Using the OpenCV libraries in an Xc...

OPENCV : reading CvSeq after SURF Extract

Hi there, I'm trying to put CvSeq data into a database (rdbms like mysql). Right now, what I could do is to store it in a file, here's what I do : Filling a CvSeq with CvExtractSurf Saving to file with CvSave But I'd like to store it in a DB instead of a File, so I guess there's a trick to read the CvSeq structure and fill a DB tab...

How to remove shadow and reflection on the the images in C#

Hi Guys, I have a question on how to remove shadow and reflection on the signboard on the images. I have no idea abt how it is done. I am doing coding in C#, emguCV (opencv wrapper) I am seeking help on this issue. Thank you very much. This is the example: (I can't post a picture cos i am a new user) http://img85.imageshack.us/img85...

Advice for classifying symbols/images

I am working on a project that requires classification of characters and symbols (basically OCR that needs to handle single ASCII characters and symbols such as music notation). I am working with vector graphics (Paths and Glyphs in WPF) so the images can be of any resolution and rotation will be negligable. It will need to classify (and...

How to recognizing money bills in Images?

I'm having some images, of euro money bills. The bills are completely within the image and are mostly flat (e.g. little deformation) and perspective skew is small (e.g. image quite taken from above the bill). Now I'm no expert in image recognition. I'd like to achieve the following: Find the boundingbox for the money bill (so I can "c...

How to open file\live stream with FFMPEG edit each frame with openCV and save that as encoded with FFMPEGfile\live stream?

How to open file\live stream with FFMPEG edit each frame with openCV and save that as encoded with FFMPEGfile\live stream? ...

How can I speed up array generations in python?

I'm thinking I need to use numpy or some other library to fill these arrays fast enough but I don't know much about it. Right now this operation takes about 1 second on a quad-core Intel PC, but I need it to be as fast as possible. Any help is greatly appreciated. Thanks! import cv class TestClass: def __init__(self): w = 960 ...

How to implement 1D FFT filter for each horizontal line data from image

I wish to apply a frequency-domain filter, such as a Low Pass or Band Pass, to each horizontal line of an image. Is this possible using opencv? ...

Enable python support while installing opencv using mac ports

I installed opencv in my mac using mac ports by the following command sudo port install opencv It took around 2 hours and it installed properly. But the problem is that the python bindings are not enabled. So please let me know how to install opencv in mac using ports and also enable the python bindings. Thanks PS: I tried to manuall...

Distance travelled by a robot using Optical Flow

Hi, is there a way to find out the distance travelled by a robot using Optical Flow? For example, using OpenCV, I'm able to find out the velocity of each pixel between 2 images taken by a camera. However, I don't know where to go with this to find out the corresponding distance travelled by the robot. Can you suggest a way to do this? M...