vision

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: AGPL-3.0 Imports: 11 Imported by: 4

Documentation

Overview

Package vision implements computer vision algorithms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageTrainingStore

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

ImageTrainingStore TODO.

func NewImageTrainingStore

func NewImageTrainingStore(ctx context.Context, mongoURI, db, collection string) (*ImageTrainingStore, error)

NewImageTrainingStore TODO.

func (*ImageTrainingStore) BuildIndexes

func (its *ImageTrainingStore) BuildIndexes(ctx context.Context) error

BuildIndexes TODO.

func (*ImageTrainingStore) Close

func (its *ImageTrainingStore) Close(ctx context.Context) error

Close TODO.

func (*ImageTrainingStore) GetImage

GetImage TODO.

func (*ImageTrainingStore) GetImagesForLabel

func (its *ImageTrainingStore) GetImagesForLabel(ctx context.Context, label string) ([]primitive.ObjectID, error)

GetImagesForLabel TODO.

func (*ImageTrainingStore) GetLabels

func (its *ImageTrainingStore) GetLabels(ctx context.Context) (map[string]int, error)

GetLabels TODO.

func (*ImageTrainingStore) SetLabelsForImage

func (its *ImageTrainingStore) SetLabelsForImage(ctx context.Context, id primitive.ObjectID, labels []string) error

SetLabelsForImage TODO.

func (*ImageTrainingStore) StoreImage

func (its *ImageTrainingStore) StoreImage(
	ctx context.Context,
	img image.Image,
	metaData map[string]interface{},
	labels []string,
) (primitive.ObjectID, error)

StoreImage TODO.

func (*ImageTrainingStore) StoreImageFromDisk

func (its *ImageTrainingStore) StoreImageFromDisk(ctx context.Context, fn string, labels []string) (primitive.ObjectID, error)

StoreImageFromDisk TODO.

type Object

type Object struct {
	pc.PointCloud
	Geometry spatialmath.Geometry
}

Object extends PointCloud with respective metadata, like the center coordinate. NOTE(bh):Can potentially add category or pose information to this struct.

func NewEmptyObject

func NewEmptyObject() *Object

NewEmptyObject creates a new empty point cloud with metadata.

func NewObject

func NewObject(cloud pc.PointCloud) (*Object, error)

NewObject creates a new vision.Object from a point cloud with an empty label.

func NewObjectWithLabel added in v0.1.4

func NewObjectWithLabel(cloud pc.PointCloud, label string) (*Object, error)

NewObjectWithLabel creates a new vision.Object from a point cloud with the given label.

type TrainingImage

type TrainingImage struct {
	ID       primitive.ObjectID `bson:"_id" json:"id,omitempty"`
	Data     []byte
	Labels   []string
	MetaData map[string]interface{}
}

TrainingImage TODO.

Directories

Path Synopsis
Package chess implements computer vision algorithms useful in chess.
Package chess implements computer vision algorithms useful in chess.
Package classification implements a classifier for use as a visModel in the vision service
Package classification implements a classifier for use as a visModel in the vision service
Package delaunay implements 2d Delaunay triangulation
Package delaunay implements 2d Delaunay triangulation
Package keypoints contains the implementation of keypoints in an image.
Package keypoints contains the implementation of keypoints in an image.
Package objectdetection defines a functional way to create object detection pipelines by feeding in images from a gostream.VideoSource source.
Package objectdetection defines a functional way to create object detection pipelines by feeding in images from a gostream.VideoSource source.
cmd/color_detection
Package main is a color detection tool.
Package main is a color detection tool.
Package odometry implements functions for visual odometry
Package odometry implements functions for visual odometry
cmd
Package main is a motion estimation via visual odometry tool.
Package main is a motion estimation via visual odometry tool.
Package segmentation implements object segmentation algorithms.
Package segmentation implements object segmentation algorithms.

Jump to

Keyboard shortcuts

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