tensorflowAPI

package
v0.0.0-...-d54de9c Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INCEPTION_MODEL_PATH          = "tensorflowAPI/model/tensorflow_inception_graph.pb"
	INCEPTION_MODEL_LABELS        = "tensorflowAPI/model/imagenet_comp_graph_label_strings.txt"
	COCO_MODEL_PATH               = "tensorflowAPI/model/frozen_inference_graph.pb"
	COCO_LABELS_PATH              = "tensorflowAPI/model/coco_labels.txt"
	DEPTH_OF_LABEL_CLASSIFICATION = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Label

type Label struct {
	Label       string
	Probability float32
}

type Model

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

type TensorFlowClient

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

func NewTensorFlowClient

func NewTensorFlowClient(logger logging.ImageMasterLogger) *TensorFlowClient

func (*TensorFlowClient) ClassifyImage

func (t *TensorFlowClient) ClassifyImage(img image.Image) ([]Label, []float32, [][]float32, error)

function that takes an image and returns the top probable objects in it

Jump to

Keyboard shortcuts

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