My favorites | Sign in
Project Logo
                
Search
for
Updated Jan 17, 2008 by smaucourt
Labels: Featured, Phase-Implementation
howtoporttowindows  
How may I port Portrait to Windows ?

Introduction

The windows port is not available , to do that someone need to implement Windows Webcam capture for Java and send it to me.

Details

Sun 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 support

package 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;
}
}


Comment by smaucourt, Dec 11, 2007

for windows XP the classname must be: fr.sokaris.faceme.webcam.WindowsXPCapture

Comment by smaucourt, Dec 12, 2007

for windows Vista the classname must be: fr.sokaris.faceme.webcam.WindowsVistaCapture? and must extend WindowsXPCapture

Comment by smaucourt, Jan 17, 2008

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.


Sign in to add a comment
Hosted by Google Code