CameraCapture.java Pipe

This Pipe is a compilation of the JMF examples provided by David Fischer (http://www.mutong.com/fischer/java/usbcam/) and the sun.com.

The Pipe performs fast image capturing from web-camera.
The process contains next steps:

  • Init camera
  • Capture the last frame from a camera to a BufferedImage, put it to the output slot every time you run the Execute() method;
  • Shutdown camera

Shortcoming: provides empty frames for 2-3 seconds after start.

Code:
CameraCapture.java

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.