hybridgroup.gobot/platforms/opencv/helpers_test.go

18 lines
317 B
Go

package opencv
import cv "github.com/lazywei/go-opencv/opencv"
type testCapture struct{}
func (c *testCapture) RetrieveFrame(i int) *cv.IplImage {
return &cv.IplImage{}
}
func (c *testCapture) GrabFrame() bool {
return true
}
type testWindow struct{}
func (w *testWindow) ShowImage(i *cv.IplImage) { return }