Tuesday, August 21, 2018

Conversion between different image formats of Python

There are a lot of libraries in Python that assist in image processing , each having its own image formats. The most popular ones are Open Source Computer Vision (OpenCV) , scikit-image, scikit-learn, SimpleCV etc. Furthermore, for Grpahical User Interface programming there are a bunch of more. Each one of these are used as per requirement. These includes Tkinter, Pygame, Kivy etc. While most of these libraries support the Numpy array formats, some of the libraries have their own formats of images, making it to difficult to use a combination of libraries. In this post I will share the details of image formats used in each library, and how to convert between different image formats.