Aan de slagGa gratis aan de slag

Number of pixels

Let's calculate the total number of pixels in this image.

Young woman
Image preloaded as face_image

The total amount of pixel is its resolution. Given by \(Height \times Width\).

Use .shape from NumPy which is preloaded as np, in the console to check the width and height of the image.

Deze oefening maakt deel uit van de cursus

Image Processing in Python

Cursus bekijken

Praktische interactieve oefening

Zet theorie om in actie met een van onze interactieve oefeningen.

Begin met trainen