fixed naming of 'last' to 'next'
This commit is contained in:
parent
d3f79abcae
commit
b8ea9750bf
1 changed files with 8 additions and 8 deletions
16
stream.go
16
stream.go
|
@ -107,17 +107,17 @@ func (s Stream) IMReadCurrent() gocv.Mat {
|
||||||
return gocv.IMRead(s.GetCurrentInstantPath(), gocv.IMReadGrayScale)
|
return gocv.IMRead(s.GetCurrentInstantPath(), gocv.IMReadGrayScale)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetLastInstantPath returns filepath.Join(s.GetStreamDirPath(), s.base64, "last.jpg")
|
// GetNextInstantPath returns filepath.Join(s.GetStreamDirPath(), s.base64, "last.jpg")
|
||||||
func (s Stream) GetLastInstantPath() string {
|
func (s Stream) GetNextInstantPath() string {
|
||||||
return filepath.Join(s.GetStreamDirPath(), s.base64, "last.jpg")
|
return filepath.Join(s.GetStreamDirPath(), s.base64, "last.jpg")
|
||||||
}
|
}
|
||||||
|
|
||||||
// LastInstantPathExists returns FileExists(GetLastInstantPath())
|
// NextInstantPathExists returns FileExists(GetNextInstantPath())
|
||||||
func (s Stream) LastInstantPathExists() bool {
|
func (s Stream) NextInstantPathExists() bool {
|
||||||
return FileExists(s.GetLastInstantPath())
|
return FileExists(s.GetNextInstantPath())
|
||||||
}
|
}
|
||||||
|
|
||||||
// IMReadLast returns gocv.IMRead(GetLastInstantPath(), gocv.IMReadGrayScale)
|
// IMReadNext returns gocv.IMRead(GetNextInstantPath(), gocv.IMReadGrayScale)
|
||||||
func (s Stream) IMReadLast() gocv.Mat {
|
func (s Stream) IMReadNext() gocv.Mat {
|
||||||
return gocv.IMRead(s.GetLastInstantPath(), gocv.IMReadGrayScale)
|
return gocv.IMRead(s.GetNextInstantPath(), gocv.IMReadGrayScale)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue