From 280b3327bfca71fcb345ae564a9d80db3f5f9b4b Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Sat, 11 Jul 2020 11:06:08 +0000 Subject: [PATCH] grey scale is now properly saved to disk as current --- stream.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }