objects

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 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 BigObjectFilter added in v0.2.0

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

func NewBigObjectFilter added in v0.2.0

func NewBigObjectFilter(sizeThreshold float64, imgWidth, imgHeight int) *BigObjectFilter

func (BigObjectFilter) Filter added in v0.2.0

func (b BigObjectFilter) Filter(object *events.Object) bool

type BottomFilter added in v0.2.0

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

func NewBottomFilter added in v0.2.0

func NewBottomFilter(bottomLimit float64) *BottomFilter

func (BottomFilter) Filter added in v0.2.0

func (b BottomFilter) Filter(object *events.Object) bool

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 Filter added in v0.2.0

type Filter interface {
	Filter(*events.Object) bool
}

type ObjectFilter

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

func NewFilter

func NewFilter(imgWidth int, imgHeight int, enableGroupObjects bool, enableNearest bool, filters ...Filter) *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