vision

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: AGPL-3.0 Imports: 11 Imported by: 5

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 string, db string, 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
	BoundingBox 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 calculates the metadata for an input pointcloud.

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 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.ImageSource source.
Package objectdetection defines a functional way to create object detection pipelines by feeding in images from a gostream.ImageSource source.
Package odometry implements functions for visual odometry
Package odometry implements functions for visual odometry
cmd
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