vision

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: AGPL-3.0 Imports: 14 Imported by: 1

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, geometry *commonpb.Geometry) (*Object, error)

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

func (*Object) Distance added in v0.4.0

func (o *Object) Distance() (float64, error)

Distance calculates and returns the distance from the center point of the object to the origin.

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 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.
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