mirror of https://bitbucket.org/ausocean/av.git
formatting
This commit is contained in:
parent
2e70e3fa1b
commit
c3f1d957e3
|
@ -40,15 +40,15 @@ 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 // Writer and closer interface.
|
||||||
area float64 //minimum area that motion.
|
area float64 // Minimum area that motion.
|
||||||
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.
|
||||||
windows []*gocv.Window //holds debug windows.
|
windows []*gocv.Window // Holds debug windows.
|
||||||
hold [][]byte //will hold all frames up to hf (so only every hf frame is motion detected).
|
hold [][]byte // Will hold all frames up to hf (so only every hf frame is motion detected).
|
||||||
hf int //the number of frames to be held.
|
hf int // The number of frames to be held.
|
||||||
hfCount int //counter for the hold array.
|
hfCount int // Counter for the hold array.
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewMOGFilter returns a pointer to a new MOGFilter struct.
|
// NewMOGFilter returns a pointer to a new MOGFilter struct.
|
||||||
|
|
|
@ -328,6 +328,7 @@ var TypeData = map[string]string{
|
||||||
"MOGHistory": "uint",
|
"MOGHistory": "uint",
|
||||||
"MOGMinArea": "float",
|
"MOGMinArea": "float",
|
||||||
"MOGThreshold": "float",
|
"MOGThreshold": "float",
|
||||||
|
"MotionInterval": "int",
|
||||||
"RBCapacity": "uint",
|
"RBCapacity": "uint",
|
||||||
"RBMaxElements": "uint",
|
"RBMaxElements": "uint",
|
||||||
"RBWriteTimeout": "uint",
|
"RBWriteTimeout": "uint",
|
||||||
|
|
Loading…
Reference in New Issue