debug IMReadColor
This commit is contained in:
parent
f71fb6a14a
commit
308b966119
2 changed files with 1 additions and 2 deletions
1
main.go
Executable file → Normal file
1
main.go
Executable file → Normal 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())
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue