debug IMReadColor

This commit is contained in:
broodjeaap 2020-07-11 16:06:44 +02:00
parent f71fb6a14a
commit 308b966119
2 changed files with 1 additions and 2 deletions

1
main.go Executable file → Normal file
View file

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

View file

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