support

package
v0.0.0-...-f0e05c5 Latest Latest
Warning

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

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

README

This directory contains code not directly related to the RoboMaster SDK but that can be used to simplify the creation of interesting/useful programs in an easier way.

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

func (c *ColorObjectTracker) 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 PersonTracker

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

func NewPersonTracker

func NewPersonTracker() *PersonTracker

func (*PersonTracker) FindPeople

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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