I'm trying to convert this string in base64 (http://pastebin.com/uz4ta0RL) to something usable by OpenCV. Currently I am using this code (img_temp is the string) to use the OpenCV functions by converting it to a temp image(imagetosave.jpg) then loading the temp image with cv2.imread.
fh = open('imagetosave.jpg','wb')
fh.write(img_temp.decode('base64'))
fh.close()
img = cv2.imread('imagetosave.jpg',-1)
Though this method works, I would like to be able to use the OpenCV functions without using a temp image. Help would be much appreciated, thanks!