• Offers
    • RegisterLogin
      • Learn More
    PythonPoint.netPythonPoint.net
    • Offers
    • RegisterLogin
      • Learn More

      Python

      SKILL IS IMPORTANT THAN DEGREE Be skill full.
      • Home
      • Blog
      • Python
      • How to display image in python?

      How to display image in python?

      • Posted by Python Point Team
      • Categories Python
      • Date November 29, 2020
      • Comments 0 comment

      There are many libraries in python which helps us to read an image. Python has a wide variety of libraries which helps us in many way.

      • Opencv – Opencv is a library of programming functions mainly aimed at real-time computer vision. In simple language it is a library used for Image Processing. It is mainly used to do all the operation related to images.

      From openCV you can do can whatever you want to do from images. OpenCV helps in manipulation of images. Like read an image, write an image, convert colored to gray, binary, HSV etc.

      Installation of CV2:-

      • Open the command prompt.
      • Run the following command.
      • pip install opencv-python
      • Successfully install opencv on your system

      You can use CV2 by just importing it in your python script.

      syntax:-

      import cv2
      • Pillow – PIL(Python imaging library) popularly known as pillow is an image manipulation library.

      It helps in processing images in different format in python. We can easily import this library and use to process image.

      We can easily install PIL in our system.

      • Open command prompt.
      • Write the following syntax
      • pip install pillow
      • Successfully install PIL or pillow

      syntax:-

      pip install pillow

      We can easily use by importing it in python

      syntax:-

      import pillow
            or
      import PIL
      • Matplotlib is a Python library used for plotting the beautiful and attractive Graphs.

      In data science, visualization is the important step. By using visualization we can easily understand than how data is split.

      Matplotlib library is used to make different types of graphs like bar graph, histogram, scatter graph etc. It helps to study the complex data and gives the data a visual view.

      Now it’s time to see how to install matplotlib library in python.

      • Open command prompt
      • Write the following syntax:-
      pip install matplotlib

      In this way we can install matplotlib library and use it easily. We can easily import it in python and do whatever we want with that library.

      Syntax:-

      import matplotlib

      This is how we can import matplotlib library.

      By importing these libraries we can read the image in python.

      This is all about reading an image.

      • Share:
      author avatar
      Python Point Team

      Previous post

      Where is python installed in windows?
      November 29, 2020

      Next post

      How to install pandas in python 3.6?
      November 29, 2020

      You may also like

      Introduction to Transfer Learning with Python: A Practical Guide
      31 December, 2022

      Introduction: Definition of transfer learning Overview of how transfer learning works in the context of machine learning Why transfer learning is useful and important Section 1: Transfer learning in Python with Keras In this section, we will explore how to …

      How to Check Type in Python
      31 December, 2022

      In this article, we will learn to check type in Python. The built-in function type() can be used to check the type of data in Python.

      How to make web crawler in python?
      31 December, 2022

      A web crawler is a systematic, well-defined process of extracting specific data about a topic. We have a library named as scrapy which helps in making web crawler. We can install scrapy by the following command:- Now we can easily …

      Subscribe
      Login
      Notify of
      Please login to comment
      0 Discussion
      Inline Feedbacks
      View all comments

      Latest Courses

      (Hindi) Ways to earn minimum 1 Lakh Per month as Programmer

      (Hindi) Ways to earn minimum 1 Lakh Per month as Programmer

      ₹10,000
      (HINDI) Full Stack Web Development In Python 3.8 And Django 3.1

      (HINDI) Full Stack Web Development In Python 3.8 And Django 3.1

      ₹25,000 ₹2,500

      Latest Posts

      • Introduction to Transfer Learning with Python: A Practical Guide
      • How to Check Type in Python
      • How to make web crawler in python?
      • Why was the language called “python”?
      • Why Python is so Popular
      Contact
      •   support@pythonpoint.com

      We get you the best Python Courses and Blogs aiming to provide skill.

      We Believe Skill is much more important than a Degree

      Company
      • About Us
      • Blog
      • Offers
      • Contact
      Useful Links
      • Courses
      Support
      • Need Support

      © 2020 ALL RIGHTS RESERVED​ PYTHONPOINT.NET

      PythonPoint

      • Terms of Use
      • Refund Policy
      • Privacy Policy

      Login with your site account

      Lost your password?

      Not a member yet? Register now

      Register a new account

      Are you a member? Login now

      wpDiscuz