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 ¶
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.
Click to show internal directories.
Click to hide internal directories.