All Projects → lqs → neven

lqs / neven

Licence: Apache-2.0 license
The "neven" face detector library, extracted from Android.

Programming Languages

c
50402 projects - #5 most used programming language
C++
36643 projects - #6 most used programming language

This is the face detection library extracted from Android source tree. You can now use it in non-Android applications.

It was originally written by Neven Vision, a company acquired by Google in 2006.

Building

$ make
$ sudo make install

Writing Application

It's easy to use this library in your applications.

In C/C++

#include "neven.h"

static void detect_faces(void *buffer, int width, int height) {
	struct neven_env *env = neven_create(width, height, max_faces);
	int num_faces = neven_detect(env, buffer); // 'buffer' points to a grayscale 1-byte-per-pixel raw image buffer
	for (int i = 0; i < num_faces; i++) {
		struct neven_face face;
		neven_get_face(env, &face, i);
		printf("face %d is at (%f, %f)\n", i, face.midpointx, face.midpointy);
	}
	neven_destroy(env);
}

In Python

from pyneven import detect_faces_from_filename

detect_faces_from_filename(filename)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].