Fix cv3 build

This commit is contained in:
Milan Nikolic
2018-07-02 17:31:12 +02:00
parent ac555cbf7b
commit fa5233255e
2 changed files with 2 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ func New(index int) (camera *Camera, err error) {
// Read reads next frame from camera and returns image. // Read reads next frame from camera and returns image.
func (c *Camera) Read() (img image.Image, err error) { func (c *Camera) Read() (img image.Image, err error) {
ok := c.camera.Read(*c.frame) ok := c.camera.Read(c.frame)
if !ok { if !ok {
err = fmt.Errorf("camera: can not grab frame") err = fmt.Errorf("camera: can not grab frame")
return return

View File

@@ -33,7 +33,7 @@ func New(filename string) (video *Video, err error) {
// Read reads next frame from video and returns image. // Read reads next frame from video and returns image.
func (v *Video) Read() (img image.Image, err error) { func (v *Video) Read() (img image.Image, err error) {
ok := v.video.Read(*v.frame) ok := v.video.Read(v.frame)
if !ok { if !ok {
err = fmt.Errorf("video: can not grab frame") err = fmt.Errorf("video: can not grab frame")
return return