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

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.
This exercise is part of the course
Image Processing in Python
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
