Guest User

Untitled

a guest
Jul 21st, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13.  
  14. import static com.googlecode.javacv.cpp.opencv_core.*;
  15. import static com.googlecode.javacv.cpp.opencv_imgproc.*;
  16. import static com.googlecode.javacv.cpp.opencv_highgui.*;
  17.  
  18. public class Camagain {
  19. public static void smooth(String filename) {
  20. //IplImage image = cvLoadImage(filename);
  21. CvCapture capture = cvCreateCameraCapture(-1);
  22. IplImage image = cvQueryFrame(capture);
  23. cvSaveImage("foo.png", image);
  24. }
  25. }
Add Comment
Please, Sign In to add comment