Did you look into the source code - line 13 in file ..\QtOpenCV\main.cpp ?
Did you look into the source code - line 13 in file ..\QtOpenCV\main.cpp ?
I've looking into the source code ,
In the line 13, it seems a function which called " assert " ,and has an argument ( camera ).
In addition, I found that the header file which called " assert.h " was added in include file.
The path of the header file is C:\Qt\2010.05\mingw\include.
Please help me to solve the problem.
This function "assert" causes the program to terminate if assert's argument is 0, so it looks like "camera == 0". Show the code.
Btw. do you have a working camera on your machine ?
Why are you want to use OpenCV (for capturing image or video)?
If you want to capture image
Qt Code:
CvCapture *capture = 0; IplImage *frame = 0; capture = cvCaptureFromCAM( 0 ); frame = cvQueryFrame( capture );To copy to clipboard, switch view to plain text mode
In frame you get all the data of image.
Hi,
Make sure your webcam is connected and working.
I made it work using
Qt Code:
CvCapture * camera = cvCreateCameraCapture(0);To copy to clipboard, switch view to plain text mode
If argument 0 does not work, try with 1, and so on.
Bookmarks