Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Import and Show the Image | Fundamentals of Image Manipulation with Python
Fundamentals of Image Manipulation with Python
course content

Kurssisisältö

Fundamentals of Image Manipulation with Python

book
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.

Tehtävä

Swipe to start coding

  1. Import the cv2 library and the pyplot module of matplotlib with plt alias.
  2. Read the image "image1.jpg".
  3. Show the image as a plot.

Ratkaisu

Mark tasks as Completed
Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 2
AVAILABLE TO ULTIMATE ONLY
Pahoittelemme, että jotain meni pieleen. Mitä tapahtui?
some-alt