with actually changing something to the image
This commit is contained in:
parent
90a8832ab9
commit
d3771ef42c
1 changed files with 4 additions and 1 deletions
5
main.go
5
main.go
|
@ -56,8 +56,11 @@ func stream(w http.ResponseWriter, r *http.Request) {
|
||||||
saveStreamInstant(URL, img)
|
saveStreamInstant(URL, img)
|
||||||
|
|
||||||
mat, err := gocv.IMDecode(img, gocv.IMReadColor)
|
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)
|
w.Write(gocvIMG)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue