I'm trying to convert a base64 representation of a JPEG to an image that can be used with OpenCV. The catch is that I'd like to be able to do this without having to physically save the photo (I'd like it to remain in memory). Is there an updated way of accomplishing this?
I'm using python 3.6.2 and OpenCV 3.3
Here is a partial example of the type of input I'm trying to convert:
/9j/4AAQSkZJRgABAQAASABIAAD/4QBYRXhpZgAATU0AKgAAAAgAAgESAAMAAAA....
I've already tried the solutions provided by these questions, but keep getting the same "bad argument type for built-in operation" error: