objects

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GroupBBoxes

func GroupBBoxes(bboxes []image.Rectangle) []image.Rectangle

func GroupObjects

func GroupObjects(objects []*events.Object, imgWidth, imgHeight int) []*events.Object

Types

type Disparity

type Disparity struct {
	Ref *events.FrameRef
	gocv.Mat
	Baseline            float64
	FocalLengthInPixels float64
}

func (Disparity) DistanceInMm

func (d Disparity) DistanceInMm(object *events.Object) int

type ObjectFilter

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

func NewFilter

func NewFilter(imgWidth int, imgHeight int, sizeThreshold float64) *ObjectFilter

func (*ObjectFilter) Process

func (o *ObjectFilter) Process(objs []*events.Object, _ *Disparity) ([]*events.Object, error)

type ObjectProcessor

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

func (ObjectProcessor) Process

func (o ObjectProcessor) Process(objects []*events.Object, disparity *Disparity) ([]*events.Object, error)

type Processor

type Processor interface {
	Process(objects []*events.Object, disparity *Disparity) ([]*events.Object, error)
}

Jump to

Keyboard shortcuts

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