image_recognition

package
v0.0.0-...-028b8ad Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Label

type Label struct {
	Label       string  `json:"label"`
	Probability float32 `json:"probability"`
}

Label type containing a label and a probability

func GetTop5LabelsFromImageReader

func GetTop5LabelsFromImageReader(reader io.ReadCloser) []Label

GetTop5LabelsFromImageReader takes an image reader, reads the image and runs object tagging using a Tensorflow model to return a list of Labels for the image

type Labels

type Labels []Label

Labels type containing a list of Labels

func (Labels) Len

func (a Labels) Len() int

func (Labels) Less

func (a Labels) Less(i, j int) bool

func (Labels) Swap

func (a Labels) Swap(i, j int)

Jump to

Keyboard shortcuts

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