I am converting an image using imencode
. I'm currently using opencv 3.4
couldn't find the official documentation for 3.4
but did find one for 3.0
. Reading and Writing Images
It's given here that the output is retval
and buf
its said that The function compresses the image and stores it in the memory buffer that is resized to fit the result.
What is the type of compression/encoding
that is followed here in OpenCV
?
ex: cv2.imencode(.jpg,image)
I can just transfer this buf
to a server through an API, which I know will be in compressed format.
How will I decode the received buf
without knowing how it was encoded?