All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.sarxos.webcam.ds.buildin.cgt.NextFrameTask Maven / Gradle / Ivy

Go to download

This library allows you to use your PC webcam, IP or network cameras directly from Java. It's compatible with most operating systems (Windows, Linux, MacOS).

There is a newer version: 0.3.12
Show newest version
package com.github.sarxos.webcam.ds.buildin.cgt;

import com.github.sarxos.webcam.ds.buildin.WebcamGrabberProcessor;
import com.github.sarxos.webcam.ds.buildin.WebcamGrabberTask;


public class NextFrameTask extends WebcamGrabberTask {

	private WebcamGrabberProcessor processor = null;

	public NextFrameTask(WebcamGrabberProcessor processor) {
		this.processor = processor;
	}

	public void nextFrame() {
		process(processor);
	}

	@Override
	protected void handle() {
		grabber.nextFrame();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy