2014-07-24 07:38:46 +08:00
|
|
|
package opencv
|
|
|
|
|
2016-02-20 10:36:33 +08:00
|
|
|
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 }
|