/*
* Copyright 2009 (c) Florian Frankenberger (darkblue.de)
*
* This file is part of LEA.
*
* LEA is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* LEA is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with LEA. If not, see
* It uses a face detection algorithm to find an a face within the provided * image(s). Then it searches for the eye in a region where it most likely * located and traces its position relative to the face and to the last known * position. The movements are estimated by comparing more than one movement. If * a movement is distinctly pointing to a direction it is recognized and all * listeners get notified. *
* The notification is designed as observer pattern. You simply call
* addEyeMovementListener(IEyeMovementListener)
to add an
* implementation of IEyeMovementListener
to LEA. When a face is
* recognized/lost or whenever an eye movement is detected LEA will call the
* appropriate methods of the listener
*
* LEA also needs an image source implementing the ICaptureDevice
.
* One image source proxy to the Java Media Framework
is included (
* JMFCaptureDevice
).
*
* Example (for using LEA with Java Media Framework
):
*
*
* LEA lea = new LEA(new JMFCaptureDevice(), true);
*
*
* This will start LEA with the first available JMF datasource with an extra
* status window showing if face/eye has been detected successfully. Please note
* that face detection needs about 2 seconds to find a face. After detection the
* following face detection is much faster.
*
* @author Florian Frankenberger
*/
@LATTICE("LAST