Get startedGet started for free

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.

This exercise is part of the course

Image Processing in Python

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise