diff --git a/main.go b/main.go index 3a427a1..7c0900f 100755 --- a/main.go +++ b/main.go @@ -3,12 +3,15 @@ package main import ( "crypto/sha256" "encoding/base64" + "fmt" "io/ioutil" "log" "net/http" "os" "path/filepath" "text/template" + + "gocv.io/x/gocv" ) // StreamURL Unexported @@ -54,6 +57,9 @@ func stream(w http.ResponseWriter, r *http.Request) { saveStreamInstant(URL, img) w.Write([]byte(img)) + + gocvImg := gocv.IMRead(filepath.Join(".", "streams", "vERFlpF_5Y-AgJ06PjD8-LtylFJXEjbqJp0g3he5Ngs=", "current.jpg"), gocv.IMReadColor) + fmt.Println(gocvImg.Empty()) } func saveStreamInstant(URL string, img []byte) {