tiatoolbox . utils . transforms . locsize2bounds
tiatoolbox
utils
transforms
locsize2bounds
Convert a location and size to bounds.
location (tuple(int)) – A 2-tuple or length 2 array of x,y coordinates.
size (tuple(int)) – A 2-tuple or length 2 array of width and height.
int - left / start_x
int
int - top / start_y
int - right / end_x
int - bottom / end_y
tuple