IntroductionThe windows port is not available , to do that someone need to implement Windows Webcam capture for Java and send it to me. DetailsSun Java have webcam support with JMF. But it doesn't work with MacOS X, and i don't have windows OS :-/ It possible to add windows support simply by adding this kind of java file. Sample Windows supportpackage fr.sokaris.faceme.webcam; import java.awt.image.BufferedImage; public class {os.name string without spaces}Capture implements Capture { public void start() throws WebCamException {
}
public void stop() {
}
public BufferedImage showSource() throws WebCamException {
return null;
}
public int getWidth() {
return 0;
}
public int getHeight() {
return 0;
}
}
|
for windows XP the classname must be: fr.sokaris.faceme.webcam.WindowsXPCapture
for windows Vista the classname must be: fr.sokaris.faceme.webcam.WindowsVistaCapture? and must extend WindowsXPCapture
Surely! What i need is simple. WindowsXPCapture must have a thread that read the webcam stream and refresh a BufferedImage? handle.
When we launch FaceMe, it add BufferedImage? handle to a panel, start WindowsXPCapture and reflesh panel every 200ms.