From 308b966119eedcbc68d2335d24174fe4be1e222b Mon Sep 17 00:00:00 2001 From: broodjeaap Date: Sat, 11 Jul 2020 16:06:44 +0200 Subject: [PATCH] debug IMReadColor --- main.go | 1 - stream.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) mode change 100755 => 100644 main.go diff --git a/main.go b/main.go old mode 100755 new mode 100644 index a2de7ce..e14e1ef --- a/main.go +++ b/main.go @@ -123,7 +123,6 @@ func (server Server) debug(w http.ResponseWriter, r *http.Request) { return } if !stream.DebugInstantPathExists() { - log.Println(stream.GetDebugInstantPath()) return } jpg, err := gocv.IMEncode(".jpg", stream.IMReadDebug()) diff --git a/stream.go b/stream.go index bc200ea..3258d28 100755 --- a/stream.go +++ b/stream.go @@ -257,5 +257,5 @@ func (s Stream) DebugInstantPathExists() bool { // IMReadDebug returns gocv.IMRead(GetDebugInstantPath(), gocv.IMReadGrayScale) func (s Stream) IMReadDebug() gocv.Mat { - return gocv.IMRead(s.GetDebugInstantPath(), gocv.IMReadGrayScale) + return gocv.IMRead(s.GetDebugInstantPath(), gocv.IMReadColor) }