Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColorObjectTracker ¶
type ColorObjectTracker struct {
// contains filtered or unexported fields
}
ColorObjectTracker locates objects in a frame based on their color.
func NewColorObjectTracker ¶
func NewColorObjectTracker(hl, sl, vl, hu, su, vu float64, minRadius float32) *ColorObjectTracker
NewColorObjectTracker returns a new ColorObjectTracker 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 (*ColorObjectTracker) FindLargestObject ¶
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 PersonTracker ¶
type PersonTracker struct {
// contains filtered or unexported fields
}
func NewPersonTracker ¶
func NewPersonTracker() *PersonTracker
func (*PersonTracker) FindPeople ¶
func (p *PersonTracker) FindPeople(frame *gocv.Mat)
Click to show internal directories.
Click to hide internal directories.