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

Add function to cast Mat into io.Reader #60

Closed
plutov opened this issue Jan 16, 2018 · 2 comments
Closed

Add function to cast Mat into io.Reader #60

plutov opened this issue Jan 16, 2018 · 2 comments
Labels

Comments

@plutov
Copy link

plutov commented Jan 16, 2018

When I use this code:

imgFace := img.Region(r)

Then to be able to get image data, I need to save into file using:

gocv.IMWrite(imgName, imgFace)

And then I can use os.Open and get io.Reader type. But I think it can be helpful to have this in gocv.

@deadprogram
Copy link
Member

Hello, @plutov sounds like you might be looking for what the IMEncode() function already does:

https://godoc.org/gocv.io/x/gocv#IMEncode

@plutov
Copy link
Author

plutov commented Jan 16, 2018

Awesome, didn't see it.

@plutov plutov closed this as completed Jan 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants