A library of images in Python programming ImageIO (reading RGB content from photos, converting photo formats)

Source: Internet
Author: User

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.