diff --git a/stream.go b/stream.go index cc59401..4a8e5ac 100755 --- a/stream.go +++ b/stream.go @@ -52,8 +52,8 @@ func (s Stream) Update() { go gocv.IMWrite(s.GetCurrentColorInstantPath(), mat) grey := gocv.NewMat() - gocv.CvtColor(mat, &grey, gocv.ColorBGRAToBGR) - gocv.GaussianBlur(mat, &mat, image.Point{X: 21, Y: 21}, 0, 0, gocv.BorderReflect) + gocv.CvtColor(mat, &grey, gocv.ColorBGRAToGray) + gocv.GaussianBlur(grey, &grey, image.Point{X: 21, Y: 21}, 0, 0, gocv.BorderReflect) go s.SaveStreamInstant(grey) }