Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mike10004/requery-face

Java port of Liu's CCV face detection
https://github.com/mike10004/requery-face

face-detection java

Last synced: 15 days ago
JSON representation

Java port of Liu's CCV face detection

Awesome Lists containing this project

README

        

# requery-face

This is a pure Java port of [Liu Liu's JavaScript face detection code][liuliu].
Currently, it's a pretty quick and dirty job. It is *not* any of these things:

* fast
* robust
* memory-conserving

But if what you're looking for is Java face detection, and you're not all that
concerned with speed or detecting all faces, then this may be for you. Liu Liu
did fine work in writing C code and JavaScript code for face detection, and
you should check those out if you're really interested in high performance.

## Usage

For an example of how to use the code, check out the `Annotate` class, found
among the unit tests. It is a program that runs over a directory of JPEG files
and re-writes them with face annotations.

The gist of it is something like this:

BufferedImage image = ImageIO.read(imageFile);
RequeryFaceDetector detector = new RequeryFaceDetector();
List detections = detector.detect(BufferedCanvas.from(image));

It has never been tested with anything but the default set of classifiers and
the default detection options. Use at your own risk.

## To do

Some suggestions on how to improve the code:

* use single-channel representations of images (instead of 4-channel RGBA)
* parallelize the image data analysis part

[liuliu]: http://libccv.org/