Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- import static com.googlecode.javacv.cpp.opencv_core.*;
- import static com.googlecode.javacv.cpp.opencv_imgproc.*;
- import static com.googlecode.javacv.cpp.opencv_highgui.*;
- public class Camagain {
- public static void smooth(String filename) {
- //IplImage image = cvLoadImage(filename);
- CvCapture capture = cvCreateCameraCapture(-1);
- IplImage image = cvQueryFrame(capture);
- cvSaveImage("foo.png", image);
- }
- }
Add Comment
Please, Sign In to add comment