From d3771ef42c49ecf2e65dcbf917df4afdb81329ca Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Mon, 6 Jul 2020 17:46:09 +0000 Subject: [PATCH] with actually changing something to the image --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 74102db..916f21d 100755 --- a/main.go +++ b/main.go @@ -56,8 +56,11 @@ func stream(w http.ResponseWriter, r *http.Request) { saveStreamInstant(URL, img) mat, err := gocv.IMDecode(img, gocv.IMReadColor) + newMat := gocv.NewMat() - gocvIMG, err := gocv.IMEncode(".jpg", mat) + gocv.ConvertScaleAbs(mat, &newMat, 2.0, 60) + + gocvIMG, err := gocv.IMEncode(".jpg", newMat) w.Write(gocvIMG) }