mirror of https://bitbucket.org/ausocean/av.git
filter: change formatting of code
This commit is contained in:
parent
b15b649151
commit
fb43e9214a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue