opencv

get video timecode using OpenCV?

Hi all, I'm looking for a way to read SMPTE timecode embedded in DV video stream captured from Firewire camera. Can this be done using OpenCV? If not, could you point me to a good sample source code that does this using DirectShow? Thank you, Ben ...

cvUndistort2 () and cvRemap () crash

Hi! I was doing example 11-1 of "Learning OpenCV" by Bradski. Unfortunately the given example doesn't work on my computer. The program is supposed to calibrate camera using chessboard and then output undistorted video output from the camera. The calibration part works fine, the problem arises when the program tries to undistort the i...

Matlab Bwareaopen equivalent function in OpenCV

hi! Im trying to find similar or equivalent funtion of Matlabs "Bwareaopen" function in OpenCV? In MatLab Bwareaopen(image,P) removes from a binary image all connected components (objects) that have fewer than P pixels. In my 1 channel image i want to simply remove small regions that are not part of bigger ones? Is there any trivial w...

OpenCV grouping white pixels

Hi Guys, I've done the hard work, turning my iSight camera on my MacBook into an infared camera, converted it, set the threshold etc.. and now have an image that looks something like this: My problem is now; I need to know how many blobs are on my image by grouping the white pixels. I don't want to use cvBlob/cvBlobsLib, I'd rather ju...

How to view TV Tuner component input with OpenCV?

Hi Everyone, I'm trying to use my tvtuner instead of a webcam with opencv. The problem is that by default cvCaptureFromCAM(0) gives me the tv channel of the tv tuner, but what I actually want the input from my the RCA input of the tv tuner. I have tried usingcvCaptureFromCAM(-1) to check if there are additional camera devices found wit...

cvWarpPerspective Crashing in Dev C++ runtime

Can someone throw some light on why cvWarpPerspective might be crashing runtime ? I am using opencv2.0 and code is posted below ( taken from learning opencv book ) Any help is greatly appreciated. int main(int argc, char* argv[]) { CvPoint2D32f srcQuad[4], dstQuad[4]; CvMat* warp_matrix = cvCreateMat(3,3,CV_32FC1); IplImage *src, *dst...

Using openCV staticly on Snow Leoaprd

I am using snow leopard and I am trying to build my app with static libraries... I was able to build opencv with static libraries by changing build_shared_libs to "no" This generated a bunch of .a files (including pch_dephelp.a" files) First off, I don't know what pch_dephelp.a files are (e.g. libcv_pch_dephelp.a) When I tried to com...

How to merge detected edges to a colour capture in Emgu CV

Hello, I am trying to make a C# desktop application (with Emgu CV wrapper) which captures the feed from the camera, detects edges in the feed and then displays the original feed (coloured) with the edges - so somewhat of a combined coloured feed and edges. I successfully get the feed from the camera. I also detect the edges in the feed ...

how to integrate openCV and ARtoolkit

hi all, I need to use both openCV and ARtoolkit libraries in the same project. I'm trying to get frame by using arVideoGetImage() function in order to process for with openCV functions. however program throws a "System.AccessViolationException" error in the following line of face detection example: CvSeq *faces = cvHaarDetectObjects(img,...

Can anybody provide simple steps of "Skeleton Pruning by Contour Partitioning with Discrete Curve Evolution" Algorithm

Can anybody provide simple steps of "Skeleton Pruning by Contour Partitioning with Discrete Curve Evolution" Algorithm or c++ code i have document if some one is familiar simple steps of the algorithm ...

Image processing using opencv

hi i am a newbie in image processing techniques,how to use the open cv to repair a corrupted image ...

OpenCV: Reading a file into a CvMat structure

Using OpenCV, saving a CvMat structure into a YAML file on the disk is easy with CvMat* my_matrix = cvCreateMat( row_no, col_no, CV_32FC1 ); cvSave("filename.yml", my_matrix); However, I couldn't find an easy way to read the saved files back from the disk. Is there function in OpenCV that can handle this and create a CvMat structure...

OpenCV Frame Rate Issue

Hi all, I am working on a school project with OpenCV. A major part of the program will be a comparison of histograms. There will be a database of histograms and new histograms will be created from a live video feed then compared to the histograms in the database. Right now I am just trying to get the histograms created correctly from...

How to check for openCV

How can I confirm if openCV is properly installed in my computer ? Is there any quick command line for it ? I am on Ubuntu 9.10 ...

C++ with fstream or database

Hey guys, I am trying to implement a image recognition program in C++. I had completed the extracted of feature, now trying to save the large amount of numbers. I had 2 implementation in mind, one is to save the data into binary files, to reduce the overhead of computation, or i can use database to keep the information. Binary file is fa...

OpenCV rotation solution?

I am using those codes for rotation transforming an image, but it doesn't work. Waht is the problem? IplImage *src = cvLoadImage("image.jpg",1), *dst = cvCloneImage(src); CvMat *rotation_mat = cvCreateMat(2,3,CV_32FC1); CvPoint2D32f center = cvPoint2D32f(src->width/2 ,src->height/2); cvZero(dst); double angle = -50.0, s...

OpenCV performance in different languages

I'm doing some prototyping with OpenCV for a hobby project involving processing of real time camera data. I wonder if it is worth the effort to reimplement this in C or C++ when I have it all figured out or if no significant performance boost can be expected. The program basically chains OpenCV functions, so the main part of the work sho...

Draw circle around a white area in OpenCV (C language)

Hi all, how can I draw a circle around a white space in a image file with OpenCV (C language)? image example: thanks a lot! ...

Simple OpenCV problem.

Why I try to run the following OpenCV program, it shows the following error : ERROR: test_1.exe - Application Error The application failed to initialize properly (0x80000003). Click on OK to terminate the application. CODE: #include "cv.h" #include "highgui.h" int main() { IplImage *img = cvLoadImage("C:\\face.bmp"); cvSetImageR...

OpenCV to JNI how to make it work?

I am tring to use opencv and java for face detection, and in that pursit i found this "JNI2OPENCV" file....but i am confused on how to make it work, can anyone help me? http://img519.imageshack.us/img519/4803/askaj.jpg and the following is the FaceDetection.java class JNIOpenCV { static { System.loadLibrary("JNI2OpenCV");...