BaşlayınÜcretsiz Başlayın

Images as data: visualizations

To display image data, you will rely on Python's Matplotlib library, and specifically use matplotlib's pyplot sub-module, that contains many plotting commands. Some of these commands allow you to display the content of images stored in arrays.

Bu egzersiz

Image Modeling with Keras

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Import the image from the file bricks.png into data.
  • Display the image in data on the screen.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Import matplotlib
import matplotlib.pyplot as plt

# Load the image
data = plt.____('bricks.png')

# Display the image
plt.____(____)
plt.show()
Kodu Düzenle ve Çalıştır