Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyFilters ¶
ApplyFilters Applies a chain of manipulations on a frame. The order of manipulations is the same as the slice. Will stop midway if errors encountered.
func CreateFrames ¶
CreateFrames Applies a slice of Filters, to produce a slice of frames. The order of frames produces has to be the same as the order of input filters. It will not complete if errors in filters will be encountered.
Types ¶
type CvtColor ¶
type CvtColor struct {
// contains filtered or unexported fields
}
CvtColor implements OpenCV's Color conversion feature
func CreateCvtColorFilter ¶
func CreateCvtColorFilter(convCode gocv.ColorConversionCode) CvtColor
CreateCvtColorFilter creates a filter with color spec
type Filter ¶
type Filter interface { //Produce Responsible for allocating a new frame with manipulations on it Produce(gocv.Mat) (gocv.Mat, error) //Manipulate Responsible for changing an existing frame Apply(*gocv.Mat) error }
Filter Defines a computation on a frame, that may do either noise removal or something else.
type LineApply ¶
type LineApply struct { }
LineApply Applies white lines of full height of window when white pixel found
func CreateLineApplyFilter ¶
func CreateLineApplyFilter() LineApply
CreateLineApplyFilter Creates LineApply filter with settings
type Noise ¶
type Noise struct {
// contains filtered or unexported fields
}
Noise Removes moving noise pixels, Should ease detection
func CreateNoiseFilter ¶
CreateNoiseFilter Creates noise filter
type Subtract ¶
type Subtract struct {
// contains filtered or unexported fields
}
Subtract Is a background subtractor, used to find movement
func CreateSubtractFilter ¶
CreateSubtractFilter Creates subtract filter with settings
type Threshold ¶
type Threshold struct {
// contains filtered or unexported fields
}
Threshold implements OpenCV's threshold as a filter
func CreateThesholdFilter ¶
func CreateThesholdFilter(thresh float32, maxValue float32, threshType gocv.ThresholdType) Threshold
CreateThesholdFilter returns a configured filter