def get_font_scale_and_thick(im_inp): h, w = im_inp.shape[:2] scale = h // 1000 + 1 thick = scale * 2 return scale, thick