Cursusinhoud
Fundamentals of Image Manipulation with Python
Import and Show the Image
In order to read (import) an image in Python with the OpenCV library, you can use the cv2.imread()
function. This function takes one parameter, which is the file path of the image you want to import. The function returns the image as a NumPy array, which can then be used for further processing.
Taak
Swipe to start coding
- Import the
cv2
library and thepyplot
module ofmatplotlib
withplt
alias. - Read the image
"image1.jpg"
. - Show the image as a plot.
Oplossing
Mark tasks as Completed
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 2
AVAILABLE TO ULTIMATE ONLY