ketai.cv.facedetector

## Class KetaiFaceDetector

- java.lang.Object
- - ketai.cv.facedetector.KetaiFaceDetector

-     public class KetaiFaceDetector
      extends java.lang.Object

  KetaiFaceDetector wraps the android face detection api. The android face finding relies on eye detection and has limited accuracy but provides basic face detection without any external dependencies.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `KetaiFaceDetector()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static KetaiSimpleFace[]` | `findFaces(KetaiCamera _image)` Find faces (max 5).
    `static KetaiSimpleFace[]` | `findFaces(KetaiCamera _camera, int MAX_FACES)`
    `static KetaiSimpleFace[]` | `findFaces(processing.core.PImage _image, int MAX_FACES)` Find faces.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### KetaiFaceDetector

          public KetaiFaceDetector()

  - ### Method Detail

    - #### findFaces

          public static KetaiSimpleFace[] findFaces(processing.core.PImage _image,
                                                    int MAX_FACES)

      Find faces.
      Parameters:
        `_image` - image to find faces in
        `MAX_FACES` - the maximum number faces to find
      Returns:
        the ketai simple face[] - array of faces found

    - #### findFaces

          public static KetaiSimpleFace[] findFaces(KetaiCamera _camera,
                                                    int MAX_FACES)

    - #### findFaces

          public static KetaiSimpleFace[] findFaces(KetaiCamera _image)

      Find faces (max 5).
      Parameters:
        `_image` - - image to find faces in.
      Returns:
        the ketai simple face[]