Skip to content
/ neji Public

Face recognition library working over dlib face recognition model

License

Notifications You must be signed in to change notification settings

avrebarra/neji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Logo

neji GoDoc Go Report Card

Neji is a face recognition library working over dlib face recognition model. Yes, it needs dlib to work.

This library will only help you to recognize face feature vectors inside a given image (currently only support .JPEG files format). For determining closeness of faces you can implement another distance calculation function over the extracterd feature vectors here.

Usage

// main.go
package main

import (
	"fmt"

	"github.com/shrotavre/neji"
)

func main() {
    // this assumes you already downloaded dlib models needed and placed in
    // ./models folder
    n, err := neji.NewNeji("./models")
    imgData, err := ioutil.ReadFile("./fixtures/hinata.jpeg")
    if err != nil {
        t.Error("failed loading image test file")
        return
    }

    faces, err := n.RecognizeFaces(imgData, 10)

    // this will list all feature vectors found in the fixture image.
    // The fixture image only has 1 faces though.  
    fmt.Println(faces)
}

Models

The dlib models used within this package is/are:

  • dlib_face_recognition_resnet_model_v1.dat
  • mmod_human_face_detector.dat
  • shape_predictor_5_face_landmarks.dat

About

Face recognition library working over dlib face recognition model

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published