Number of pixels
Let's calculate the total number of pixels in this image.
face_imageThe 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.
Cet exercice fait partie du cours
Image Processing in Python
Exercice interactif pratique
Passez de la théorie à la pratique avec l’un de nos exercices interactifs
Commencer l’exercice