pipeline

package
v0.0.0-...-f8bd198 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MinThresh  HSV     `json:"minThresh"`
	MaxThresh  HSV     `json:"maxThresh"`
	MinContour float64 `json:"minContour"`
	MaxContour float64 `json:"maxContour"`
}

type HSV

type HSV struct {
	H float64 `json:"h"`
	S float64 `json:"s"`
	V float64 `json:"v"`
}

type Pipeline

type Pipeline struct {
	Config Config
}

func New

func New(config Config) Pipeline

func (Pipeline) ProcessFrame

func (p Pipeline) ProcessFrame(frame gocv.Mat, outFrame *gocv.Mat) (image.Point, bool)

type SortableContours

type SortableContours [][]image.Point

func (SortableContours) Len

func (s SortableContours) Len() int

func (SortableContours) Less

func (s SortableContours) Less(i, j int) bool

func (SortableContours) Swap

func (s SortableContours) Swap(i, j int)

Jump to

Keyboard shortcuts

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