Return to Computer Vision Notebooks

Python Image Libraries



Brief overview about some of the main python libraries which promote input and output of digital image files.

1. PIL


Reading and writing images using Python Image Library PIL.

1.1. Installation


Install by command line:

>>> conda install --channel anaconda pillow

or

>>> pip install Pillow

1.2. Input


PIL still doesn't support bit depth greater than 8.

1.3. Analysis


1.4. Output


2. Scipy


Reading and writing images using SciPy.

2.1. Installation


Install by command line:

>>> conda install scipy

ou

>>> pip install scipy

2.2. Input


sciPy still doesn't support bit depth greater than 8.

2.3. Analysis


2.4. Output


3. OpenCV


Reading and writing images using OpenCV.

3.1. Installation


Install by command line:

>>> conda install --channel menpo opencv

or

>>> pip install opencv-python

3.2. Input


openCV supports bit depth greater than 8. The result is in BGR mode and it's necessary invert channels to convert to RGB.

3.3. Analysis


3.4. Output


3.5. Images - 16 and 32 bits