X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=otherlibs%2Fcvcam%2Fsrc%2Fwindows%2FHowToUse.txt;fp=otherlibs%2Fcvcam%2Fsrc%2Fwindows%2FHowToUse.txt;h=0000000000000000000000000000000000000000;hb=e4c14cdbdf2fe805e79cd96ded236f57e7b89060;hp=1a0bfe6aee913aa07c2667845d7918151f0dc698;hpb=454138ff8a20f6edb9b65a910101403d8b520643;p=opencv diff --git a/otherlibs/cvcam/src/windows/HowToUse.txt b/otherlibs/cvcam/src/windows/HowToUse.txt deleted file mode 100644 index 1a0bfe6..0000000 --- a/otherlibs/cvcam/src/windows/HowToUse.txt +++ /dev/null @@ -1,30 +0,0 @@ -#include -#include -#include "cvcam.h" -#include "..\\highgui\\highgui.h" -#include "cv.h" - -void __cdecl callback(void* _image) -{ - IplImage* image = (IplImage*)_image; - cvLine(image, cvPoint(0, 0), cvPoint(image->width, image->height), CV_RGB(255, 0, 0), 1); -} - -int main() -{ - int cameras = cvcamGetCamerasCount(); - if(cameras == -1) - { - printf("\nNo cameras available on the system. Exiting..."); - return -1; - } - - cvcamSetProperty(0, CVCAM_PROP_CALLBACK, &callback); - cvcamInit(); - cvcamStart(); - wait_key(0); - cvcamStop(); - cvcamExit(); - - return 0; -} \ No newline at end of file