Course Content
Image Processing Project
Import 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.
Task
- Import
cv2
andmatplotlib
; - Read the file
"image1.jpg"
; - 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.