hybridgroup.gobot/platforms/opencv/helpers_test.go

18 lines
317 B
Go
Raw Normal View History

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