I know it’s an old question, but I had the same problem and solved it with:
img = img[:,:,::-1]
More Related Contents:
- Change the colors within certain range to another color using OpenCV
- Python: PIL replace a single RGBA color
- Change specific RGB color pixels to another color, in image file
- How do I read image data from a URL in Python?
- OpenCV giving wrong color to colored images on loading
- In Python, how do I read the exif data for an image?
- How does perspective transformation work in PIL?
- How to update the image of a Tkinter Label widget?
- PIL: Convert Bytearray to Image
- Getting individual colors from a color map in matplotlib
- Working with TIFFs (import, export) in Python using numpy
- Resampling a numpy array representing an image
- Python Imaging Library – Text rendering
- How can I install PIL on mac os x 10.7.2 Lion
- About the PIL Error — IOError: decoder zip not available
- Getting list of pixel values from PIL
- With the Python Imaging Library (PIL), how does one compose an image with an alpha channel over another image?
- How to convert a grayscale image into a list of pixel values?
- PIL Convert PNG or GIF with Transparency to JPG without
- How to read a raw image using PIL?
- Changing pixel color value in PIL
- Python Matplotlib Boxplot Color
- Write image to Windows clipboard in python with PIL and win32clipboard?
- What is the fastest way to generate image thumbnails in Python?
- Convert PIL Image to byte array?
- HSV to RGB Color Conversion
- Remove transparency/alpha from any image using PIL
- Tkinter PIL image not displaying inside of a function
- How to find the RED color regions using OpenCV? [duplicate]
- How to change the foreground or background colour of a selected cell in tkinter treeview?