Back to godoc.org

Package images

v0.2.0
Latest Go to latest

The highest tagged major version is .

Published: Feb 24, 2019 | License: Apache-2.0 | Module: github.com/RTradeLtd/Lens

Index

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier