images

package
Version: v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2019 License: Apache-2.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct {
	// contains filtered or unexported fields
}

Analyzer is used to analyze images

func NewAnalyzer

func NewAnalyzer(opts ConfigOpts, logger *zap.SugaredLogger) (*Analyzer, error)

NewAnalyzer is used to analyze an image and classify it

func (*Analyzer) Analyze

func (a *Analyzer) Analyze(jobID string, content []byte) (string, error)

Analyze is used to run an image against the Inception v5 pre-trained model

type ConfigOpts

type ConfigOpts struct {
	ModelLocation string `json:"model_location"`
}

ConfigOpts is used to configure our image analyzer

type TensorflowAnalyzer

type TensorflowAnalyzer interface {
	Analyze(jobID string, content []byte) (category string, err error)
}

TensorflowAnalyzer represents a wrapper around a Tensorflow-based analyzer

Source Files

Jump to

Keyboard shortcuts

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