4 #include "..\\highgui\\highgui.h"
7 void __cdecl callback(void* _image)
9 IplImage* image = (IplImage*)_image;
10 cvLine(image, cvPoint(0, 0), cvPoint(image->width, image->height), CV_RGB(255, 0, 0), 1);
15 int cameras = cvcamGetCamerasCount();
18 printf("\nNo cameras available on the system. Exiting...");
22 cvcamSetProperty(0, CVCAM_PROP_CALLBACK, &callback);