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)
|
||||
}
|
||||
|
||||
// GetLastInstantPath returns filepath.Join(s.GetStreamDirPath(), s.base64, "last.jpg")
|
||||
func (s Stream) GetLastInstantPath() string {
|
||||
// GetNextInstantPath returns filepath.Join(s.GetStreamDirPath(), s.base64, "last.jpg")
|
||||
func (s Stream) GetNextInstantPath() string {
|
||||
return filepath.Join(s.GetStreamDirPath(), s.base64, "last.jpg")
|
||||
}
|
||||
|
||||
// LastInstantPathExists returns FileExists(GetLastInstantPath())
|
||||
func (s Stream) LastInstantPathExists() bool {
|
||||
return FileExists(s.GetLastInstantPath())
|
||||
// NextInstantPathExists returns FileExists(GetNextInstantPath())
|
||||
func (s Stream) NextInstantPathExists() bool {
|
||||
return FileExists(s.GetNextInstantPath())
|
||||
}
|
||||
|
||||
// IMReadLast returns gocv.IMRead(GetLastInstantPath(), gocv.IMReadGrayScale)
|
||||
func (s Stream) IMReadLast() gocv.Mat {
|
||||
return gocv.IMRead(s.GetLastInstantPath(), gocv.IMReadGrayScale)
|
||||
// IMReadNext returns gocv.IMRead(GetNextInstantPath(), gocv.IMReadGrayScale)
|
||||
func (s Stream) IMReadNext() gocv.Mat {
|
||||
return gocv.IMRead(s.GetNextInstantPath(), gocv.IMReadGrayScale)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue