grey scale is now properly saved to disk as current

This commit is contained in:
BroodjeAap 2020-07-11 11:06:08 +00:00
parent a0ae04c494
commit 280b3327bf

View file

@ -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)
}