Read Image | OpenCV vs Pillow | Python
Here are the side-by-side comparisons of using OpenCV (cv2) and Pillow (PIL) to read/open images in RGBA/RGB/grayscale. Please note that the color channels are ordered differently in Pillow and OpenCV images: Pillow (PIL) OpenCV (cv2) Colorful image RGB BGR Transparent image RGBA BGRA 1. Read a Colorful Image (RGB) 2. Read a Transparent Image (RGBA) […]