nick_bot: github.com/icholy/nick_bot/faceutil Index | Files

package faceutil

import "github.com/icholy/nick_bot/faceutil"

Index

Package Files

faces.go replacer.go utils.go

func DetectFaces Uses

func DetectFaces(i image.Image) []image.Rectangle

func DrawFace Uses

func DrawFace(canvas *image.NRGBA, faceRect image.Rectangle, primary bool) *image.NRGBA

func DrawFaces Uses

func DrawFaces(base image.Image, rects []image.Rectangle) *image.NRGBA

func LoadFaces Uses

func LoadFaces(dir string) error

func MustLoadFaces Uses

func MustLoadFaces(dir string)

func ReplaceFaces Uses

func ReplaceFaces(i image.Image) *image.NRGBA

type ByCenterY Uses

type ByCenterY []image.Rectangle

func (ByCenterY) Len Uses

func (b ByCenterY) Len() int

func (ByCenterY) Less Uses

func (b ByCenterY) Less(i, j int) bool

func (ByCenterY) Swap Uses

func (b ByCenterY) Swap(i, j int)

Package faceutil imports 15 packages (graph) and is imported by 2 packages. Updated 2017-06-10. Refresh now. Tools for package owners.