Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FaceTrainer ¶
type FaceTrainer struct {
// contains filtered or unexported fields
}
FaceTrainer is an abstraction around the necessary Machinebox resources in order to train a model of a face or facial-expression
func NewFaceTrainer ¶
func NewFaceTrainer(settings Settings) (*FaceTrainer, error)
NewFaceTrainer is the FaceTrainer constructor
func (*FaceTrainer) Run ¶
func (t *FaceTrainer) Run() error
Run trains a machinebox/facebox model with all .jpg files in its FacesSrcDir
type Settings ¶
type Settings struct { // FaceboxAddress is the URL of the MachineBox to use - host:port, // (default is http://localhost:8080) FaceboxAddress string // FacesSrcDir is the directory where .jpg samples will be sources from // (default is the current directory ".") FacesSrcDir string // PersonName is the name of the person who'se face is being sampled // (default is "person") PersonName string }
Settings contains necessary values to initialize a FaceTrainer
Click to show internal directories.
Click to hide internal directories.