blobs
Class FaceFinder

java.lang.Object
  extended byblobs.FaceFinder
All Implemented Interfaces:
AdjustableVariables

public class FaceFinder
extends java.lang.Object
implements AdjustableVariables

Author:
Dan O'Sullivan This finds heads and faces. It finds heads by looking first for skin. If you cannot control the background, there is an option for only looking for skin tones after the background is removed. After it finds good sized blobs of skin, it tries to find just the top part of the blob, the head. After it find the top, it tries to find the eyes as being dark and non skin blobs within the face. After it finds the eyes, it reasses the boundries of the head based on proportions It also averages recent readings to give a more stable head. It computes the rotation of the head based on the eyes. It can optionally grab a picture of the face.

Field Summary
 int blurring
           
 
Constructor Summary
FaceFinder(java.awt.image.BufferedImage _debugImage, PixelSource _ps, java.awt.Component _keyInput, java.lang.String _prefsFileName)
          Constructor
 
Method Summary
 java.util.ArrayList findBlobs()
          This method does everything and returns the number of heads found
 java.awt.image.BufferedImage getDebugImage()
           
 void setBlur()
           
 void someThingChanged(java.lang.String _whichVariable)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

blurring

public int blurring
Constructor Detail

FaceFinder

public FaceFinder(java.awt.image.BufferedImage _debugImage,
                  PixelSource _ps,
                  java.awt.Component _keyInput,
                  java.lang.String _prefsFileName)
Constructor

Method Detail

setBlur

public void setBlur()

findBlobs

public java.util.ArrayList findBlobs()
This method does everything and returns the number of heads found

Returns:

getDebugImage

public java.awt.image.BufferedImage getDebugImage()

someThingChanged

public void someThingChanged(java.lang.String _whichVariable)
Specified by:
someThingChanged in interface AdjustableVariables