Lines Matching refs:regions
161 def _correct_image_rotation(img, regions): argument
177 _KEY_TOP_LEFT: regions[2][1],
178 _KEY_BOTTOM_LEFT: regions[5][1],
179 _KEY_TOP_RIGHT: regions[14][1],
180 _KEY_BOTTOM_RIGHT: regions[17][1],
367 def _sort_by_columns(regions): argument
383 col_sorted = sorted(regions, key=lambda r: r[0][0])
430 regions = _compute_luminance_regions(img, boxes)
433 sorted_regions = _sort_by_columns(regions)
441 regions = _compute_luminance_regions(img, boxes)
442 sorted_regions = _sort_by_columns(regions)
444 _draw_luminance(img, regions)