1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-27 13:48:56 +08:00

27 lines
452 B
Go
Raw Normal View History

2014-07-23 16:38:46 -07:00
package opencv
import cv "github.com/hybridgroup/go-opencv/opencv"
type capture interface {
RetrieveFrame(int) *cv.IplImage
GrabFrame() bool
}
type testCapture struct{}
func (c *testCapture) RetrieveFrame(i int) *cv.IplImage {
return &cv.IplImage{}
}
func (c *testCapture) GrabFrame() bool {
return true
}
2014-07-23 16:54:39 -07:00
type window interface {
ShowImage(*cv.IplImage)
}
type testWindow struct{}
func (w *testWindow) ShowImage(i *cv.IplImage) { return }