codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
#include <cv.h> #include <highgui.h> #include <stdlib.h> #include <stdio.h> int main(int argc, char* argv[]) { // получаем любую подключённую камеру CvCapture* capture = cvCreateCameraCapture(CV_CAP_ANY); //cvCaptureFromCAM( 0 ); assert( capture ); IplImage* frame=0; char *filename = "pic.jpg"; // получаем кадр frame = cvQueryFrame( capture ); //записываем cvSaveImage(filename, frame); // освобождаем ресурсы cvReleaseCapture( &capture ); return 0; }
Private
[
?
]
Run code
Submit