course content

Course Content

Image Processing Project

Import and Show The ImageImport and Show The Image

In order to import an image in Python using OpenCV, you will first need to have the OpenCV library installed. Once that is done, you can use the cv2.imread() function to read an image. This function takes in one parameter, which is the file path of the image you want to import. The function returns an object representing the image, which can then be used for further processing.


  1. Import cv2 and matplotlib;
  2. Read the file "image1.jpg";
  3. Show the image as a plot.

Everything was clear?

Section 1. Chapter 2

Start learning today and achieve
coding mastery

  • Master Python, SQL, JavaScript & more.
  • Learn with Step-by-Step Lessons.
  • Get Ready for Real-World Projects.
  • Earn a Certificate Upon Completion.