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

com.github.sarxos.webcam.WebcamMotionEvent 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;

import java.util.EventObject;


/**
 * Webcam detected motion event.
 * 
 * @author Bartosz Firyn (SarXos)
 */
public class WebcamMotionEvent extends EventObject {

	private static final long serialVersionUID = -7245768099221999443L;

	private int strength = 0;

	/**
	 * Create detected motion event.
	 * 
	 * @param detector
	 * @param strength
	 */
	public WebcamMotionEvent(WebcamMotionDetector detector, int strength) {
		super(detector);
		this.strength = strength;
	}

	/**
	 * @return Motion strength
	 */
	public int getStrength() {
		return strength;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy