iclassifier

package
v0.0.0-...-7c1764f Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageClassifierUtil

type ImageClassifierUtil struct {
	LearnDir    string
	Labels      []string
	ImageHeight int
	ImageWidth  int
}

func Init

func Init(labels []string, learnDir string, imageHeight, imageWidth int) ImageClassifierUtil

func (ImageClassifierUtil) Decode

func (i ImageClassifierUtil) Decode(path string) ([]float64, error)

func (ImageClassifierUtil) Encode

func (i ImageClassifierUtil) Encode(b []float64) (interface{}, error)

func (ImageClassifierUtil) MakePattern

func (i ImageClassifierUtil) MakePattern() ([]util.DataSet, error)

Jump to

Keyboard shortcuts

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