commenting

This commit is contained in:
Ella Pietraroia 2020-01-22 16:04:16 +10:30
parent c9dee735d4
commit 3851a20aa0
1 changed files with 2 additions and 2 deletions

View File

@ -40,8 +40,8 @@ import (
// MOGFilter is a filter that provides basic motion detection. MoG is short for // MOGFilter is a filter that provides basic motion detection. MoG is short for
// Mixture of Gaussians method. // Mixture of Gaussians method.
type MOGFilter struct { type MOGFilter struct {
dst io.WriteCloser // Writer and closer interface. dst io.WriteCloser // Destination to which motion containing frames go.
area float64 // Minimum area that motion. area float64 // The minimum area that a contour can be found in.
bs *gocv.BackgroundSubtractorMOG2 // Uses the MOG algorithm to find the difference between the current and background frame. bs *gocv.BackgroundSubtractorMOG2 // Uses the MOG algorithm to find the difference between the current and background frame.
knl gocv.Mat // Matrix that is used for calculations. knl gocv.Mat // Matrix that is used for calculations.
debug bool // If true then debug windows with the bounding boxes and difference will be shown on the screen. debug bool // If true then debug windows with the bounding boxes and difference will be shown on the screen.