filter: more comment fixing

This commit is contained in:
Ella Pietraroia 2020-02-03 16:44:38 +10:30
parent 45e0f2a817
commit 5ccc4fbf99
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ type KNN struct {
hfCount int // Counter for the hold array.
}
// NewKNN returns a pointer to a new KNNFilter.
// NewKNN returns a pointer to a new KNN filter struct.
func NewKNN(dst io.WriteCloser, area, threshold float64, history, kernelSize int, debug bool, hf int) *KNN {
bs := gocv.NewBackgroundSubtractorKNNWithParams(history, threshold, false)
k := gocv.GetStructuringElement(gocv.MorphRect, image.Pt(kernelSize, kernelSize))

View File

@ -40,7 +40,7 @@ type VariableFPS struct {
count uint
}
// NewVariableFPS returns a pointer to a new VariableFPSFilter struct.
// NewVariableFPS returns a pointer to a new VariableFPS filter struct.
func NewVariableFPS(dst io.WriteCloser, minFPS float64, filter Filter) *VariableFPS {
frames := uint(25 / minFPS)
return &VariableFPS{filter, dst, frames, 0}