Write out mat to stream / print to screen
I have a mat, and I can save it to the filesystem with something like:
cv.SaveImage("/tmp/out.png", mat)
But I'm using opencv with a web server, and I want to write out the image data directly to the client. The equivalent would be writing out the image data to stdout. Is there a way to do this?
That did it, thanks! I should've specified: I'm not using python, I am using luacv. It provides lua bindings and uses opencv v2.
interesting ;)
still, using outdated c-api stuff only. (that's sad.)
do you think, it's actively maintained ? last entries on sourceforge repo seem to be from 2012
Not actively maintained for sure. But I need to use opencv from nginx, and lua runs in nginx, so I needed lua bindings.