How to make video in Java captured from webcam through lti-Civil CaptureDeviceStream ?
Posted
by i.Psi
on Stack Overflow
See other posts from Stack Overflow
or by i.Psi
Published on 2010-06-17T11:00:49Z
Indexed on
2010/06/17
11:03 UTC
Read the original article
Hit count: 320
java
|video-capture
Can I do it only with the lti-Civil classes or I need FMJ or JMF ? do I use the actual Stream or set of captured Images from CaptureObserver?
Thanks.
captureStream = system.openCaptureDeviceStream(info.getDeviceID());
captureStream.setObserver(new CaptureObserver(){
public void onError(CaptureStream arg0, CaptureException arg1) {
}
public void onNewImage(CaptureStream streamSource, Image image) {
try
{
imageFrame.setImage(AWTImageConverter.toBufferedImage(image));
bufferedImage = AWTImageConverter.toBufferedImage(image);
}
catch (Throwable t)
{ t.printStackTrace(); }
}
});
captureStream.start();
© Stack Overflow or respective owner