mode

package
v0.0.0-...-c556a6d Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColorObject

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

ColorObject locates objects in a frame based on their color.

func NewColorObject

func NewColorObject(hl, sl, vl, hu, su, vu float64,
	minRadius float32) *ColorObject

NewColorObject returns a new ColorObject instance that locates objects with a color that falls between the lower bound HSV values (hl, sl, vl) and the upper bound HSV values (hu, su, vu), only considering objects with a radius greater than minRadius.

func (*ColorObject) FindLargestObject

func (c *ColorObject) FindLargestObject(
	frame *gocv.Mat) (float32, float32, float32, error)

FindLargestObject locates the largest object that satisfies our parameters in a frame and returns its center position (x and y) and the radius of a circle that fully encloses it.

type Person

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

func NewPerson

func NewPerson() *Person

func (*Person) FindPeople

func (p *Person) FindPeople(frame *gocv.Mat)

Jump to

Keyboard shortcuts

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