sparkocr.utils.rectangle#

Module Contents#

Classes#

Point

Rectangle

class Point(x=0, y=0)#
x = 0#
y = 0#
class Rectangle(bottom_left, top_right, top_left, bottom_right)#
bottom_left#
bottom_right#
top_left#
top_right#
static from_box(box)#
get_height()#
intersects(other)#
intersects_horizontal(other, tolerance_x=5)#
static merge_intersects(rectangles, line_tolerance)#
static merge_rects(rect1, rect2)#
to_region()#