Documentation ¶
Index ¶
- func AddLabel(img *image.RGBA, x, y, class int, label string)
- func DecodeJpegGraph() (graph *tf.Graph, input, output tf.Output, err error)
- func DecodeJpegNormalizeGraph(height int32, width int32) (graph *tf.Graph, input, output tf.Output, err error)
- func GetLabel(idx int, probabilities []float32, classes []float32, labels []string) string
- func HLine(img *image.RGBA, x1, y, x2 int, col color.Color)
- func LoadLabels(labelsFile string) []string
- func MakeTensorFromImage(filename string) (*tf.Tensor, image.Image, error)
- func MakeTensorFromResizedImage(filename string, inputSize int32) (*tf.Tensor, image.Image, int, int, error)
- func NormalizeImageHWC(in *image.NRGBA, mean []float32, scale float32) ([]float32, error)
- func Rect(img *image.RGBA, x1, y1, x2, y2, width int, col color.Color)
- func ReshapeTensorFloats(data [][]float32, shape []int64) (*tf.Tensor, error)
- func Segment(img *image.RGBA, mask [][]float32, col color.Color, x1, y1, x2, y2 float32) *image.RGBA
- func TensorData(c *C.TF_Tensor) []byte
- func TensorPtrC(t *tf.Tensor) *C.TF_Tensor
- func ToPng(filePath string, imgByte []byte, bounds image.Rectangle)
- func VLine(img *image.RGBA, x, y1, y2 int, col color.Color)
- type Predictions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadLabels ¶
func MakeTensorFromImage ¶
func NormalizeImageHWC ¶
func ReshapeTensorFloats ¶
func Segment ¶
func Segment(img *image.RGBA, mask [][]float32, col color.Color, x1, y1, x2, y2 float32) *image.RGBA
Segment draws a rectangle utilizing HLine() and VLine()
func TensorData ¶
Types ¶
type Predictions ¶
Click to show internal directories.
Click to hide internal directories.