Cropping with Python and OpenCV to get passport ratio photos

why do you even draw a red rectangle into it ?
(before cropping)