1. Learn
  2. /
  3. Courses
  4. /
  5. Image Processing in Python

Connected

Exercise

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.

Instructions

50 XP

Possible answers