revid/revid.go: Separated const block into 3 sections

This commit is contained in:
Scott 2020-01-02 13:35:03 +10:30
parent c7fa55a993
commit cf51d07532
1 changed files with 10 additions and 2 deletions

View File

@ -77,16 +77,24 @@ const (
) )
// Motion filter parameters // Motion filter parameters
const (
showWindows = true
minFPS = 1.0
)
// KNN specific parameters
const ( const (
knnMinArea = 25.0 knnMinArea = 25.0
knnThreshold = 300 knnThreshold = 300
knnHistory = 300 knnHistory = 300
knnKernel = 9 knnKernel = 9
)
// MOG specific parameters
const (
mogMinArea = 25.0 mogMinArea = 25.0
mogThreshold = 20.0 mogThreshold = 20.0
mogHistory = 500 mogHistory = 500
showWindows = true
minFPS = 1.0
) )
const pkg = "revid: " const pkg = "revid: "