Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
This repository has been archived by the owner on Dec 18, 2022. It is now read-only.
/ neven Public archive

The "neven" face detector library, extracted from Android.

License

Notifications You must be signed in to change notification settings

lqs/neven

Repository files navigation

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)

About

The "neven" face detector library, extracted from Android.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages