zjinys / libfacedetection-go

libfacedetection binding for Go

Home Page:http://godoc.org/github.com/chai2010/libfacedetection-go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libfacedetection binding for Go

Example (hello.go)

package main

import (
	"github.com/chai2010/libfacedetection-go"
)

func main() {
	m := GetImage("./libfacedetection/images/keliamoniz2.jpg")
	rgb, w, h := libfacedetection.NewRGBImageFrom(m)

	faces := libfacedetection.DetectFaceRGB(rgb, w, h, w*3)
	fmt.Printf("%#v\n", faces)
}

// output:
// []libfacedetection.Face{
//     libfacedetection.Face{X:183, Y:137, W:150, H:150, Neighbors:94, Angle:0}
// }

About

libfacedetection binding for Go

http://godoc.org/github.com/chai2010/libfacedetection-go

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C++ 100.0%Language:Go 0.0%Language:CMake 0.0%Language:C 0.0%