filter: change formatting of code

This commit is contained in:
Scott 2020-01-24 16:29:06 +10:30
parent b15b649151
commit fb43e9214a
1 changed files with 9 additions and 1 deletions

View File

@ -100,7 +100,15 @@ func (d *Difference) Write(f []byte) (int, error) {
// Draw debug information.
if d.debug {
if mean >= d.thresh {
gocv.PutText(&img, fmt.Sprintf("motion - mean:%f", mean), image.Pt(32, 32), gocv.FontHersheyPlain, 2.0, color.RGBA{255, 0, 0, 0}, 2)
gocv.PutText(
&img,
fmt.Sprintf("motion - mean:%f", mean),
image.Pt(32, 32),
gocv.FontHersheyPlain,
2.0,
color.RGBA{255, 0, 0, 0},
2,
)
}
d.windows[0].IMShow(img)