Recently looking at machine learning things, often encountered the need to take a type of photos in the RGB content to read, in Python photo display with matplotlib can do, but import different formats of photos, to maintain a different format of photos numpy, scipy, Matplotlib is often not very able to make a definite, so there is a manual conversion of photo format, and then use SCIPY to import this step. Today, while looking at the code, inadvertently found a very useful graphics library, ImageIO, this third-party library can import many format types of photos, and then can be exported to various formats of photos, very useful.
Export photos function is not really need to use, we generally use matplotlib, scipy Basic can be done, but the import photo function is more useful, such as import a. png type of photo, this time there is no need to manually convert.
The installation method, Pip can be done:
Project homepage:
http://imageio.github.io/
A library of images in Python programming ImageIO (reading RGB content from photos, converting photo formats)