Closed alfredox10 closed 8 years ago
This library is not intended for this purpose. The JPEG images are not decoded at any point, since the underlying native libraries directly work with the DECT coefficients in the files. To get a numpy array, please use another library that actually decodes the images, like Pillow or wand.
I have started using a new library in my Python program to process images due to speed. I was using PIL but now I am using jpegtran. My previous code I would save the image to a numpy array and that worked perfectly fine, but now since the datatype is different I am having problems creating the same numpy array.
Old code:
New code:
I need the original shape (2136, 3216, 3) for it to work with the rest of my code.