1

What I mean by binary string, is the raw content of image file (That's what wand.image.make_blob() returns)

Is there a way to load it in OpenCV ?

Edit:

cv2.imdecode() doesn't work

img = cv2.imdecode( buf=wand_img.make_blob(), flags=cv2.IMREAD_UNCHANGED)

TypeError: buf is not a numpy array, neither a scalar

1

1 Answer 1

1

Have you tried cv2.imdecode which takes an image buffer and turns it into a CvMat object? Though I am not sure about this one.

See : http://docs.opencv.org/3.0-beta/modules/imgcodecs/doc/reading_and_writing_images.html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.