def center_crop(im, min_sz=None):
<EOL>r,c,*_ = im.shape<EOL>if min_sz is None: min_sz = min(r,c)<EOL>start_r = math.ceil((r-min_sz)/<NUM_LIT:2>)<EOL>start_c = math.ceil((c-min_sz)/<NUM_LIT:2>)<EOL>return crop_square(im, start_r, start_c, min_sz)<EOL>
Returns a center crop of an image