log.log(Level.INFO, "RemoteCamera launched...");
try {
// Set resolution low to improve performance on lower spec systems
webcam.open(new IWebcam.FrameFormat(Configuration.VIDEO_WIDTH, Configuration.VIDEO_HEIGHT),
new IWebcam.IListener() {
private VideoFrame lastFrame = new VideoFrame(
0, 0, null);
public void onVideoFrame(
final VideoFrame frame) {
SwingUtilities.invokeLater(new Runnable() {