faces

package
v0.0.0-...-492f7da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFacesConfig

func LoadFacesConfig(bundlePath string) error

LoadFacesConfig load faces config

func Names

func Names() []string

Names return all face names

Types

type FaceSwapConfig

type FaceSwapConfig struct {
	Faces []struct {
		Name   string `json:"name"`
		Images []struct {
			Path        string `json:"path"`
			Width       int    `json:"width,omitempty"`
			PaddingLeft int    `json:"paddingLeft,omitempty"`
			PaddingTop  int    `json:"paddingTop,omitempty"`
		} `json:"images"`
	} `json:"faces"`
	Width       int `json:"width"`
	PaddingLeft int `json:"paddingLeft"`
	PaddingTop  int `json:"paddingTop"`
}

FaceSwapConfig json file config

type FaceType

type FaceType struct {
	Image       string
	Name        string
	Width       int
	PaddingLeft int
	PaddingTop  int
}

FaceType loaded from config

func Faces

func Faces() []*FaceType

Faces get faces

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL