Explore Library
Code QuizIntermediate

Cropping an Image Region

A crop intended for specific rows and columns has its slice axes reversed.

Codepython
# Crop the region: rows (y) 50..100, columns (x) 30..80
crop = img[30:80, 50:100]

What is the bug in this cropping code?