Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: cannot use cropped (type *image.NRGBA) as type gocv.Mat in argument to window_cropped.IMShow #139

Open
hiteshhedwig opened this issue Mar 16, 2021 · 0 comments

Comments

@hiteshhedwig
Copy link

Hi, i am new to golang. I was trying to crop a image. While, the imaging library works flawless. I am having hard time showing cropped image in a window. It gives following error

# command-line-arguments
./main.go:45:23: cannot use cropped (type *image.NRGBA) as type gocv.Mat in argument to window_cropped.IMShow

How can i change image type such that cropped image is able to be used in gocv functions as well!

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant