# cv_analysis.utils.structures module — CV Analysis Service 2.5.2 documentation

Skip to main content
`Ctrl`+`K`

# cv_analysis.utils.structures module

class cv_analysis.utils.structures.Contour

  Bases: `object`

class cv_analysis.utils.structures.Rectangle(x1=None, y1=None, w=None, h=None, x2=None, y2=None, indent=4, format='xywh', discrete=True)

  Bases: `object`

  adjacent(rect2: Rectangle, tolerance=7)
  area()
  classmethod from_dict_xywh(xywh_dict, discrete=True)
  classmethod from_xywh(xywh_tuple, discrete=True)
  classmethod from_xyxy(xyxy_tuple, discrete=True)
  includes(other: Rectangle, tol=3)

    does a include b?

  intersection(rect)
  iou(rect)
  is_included(rectangles: Iterable[ Rectangle ])
  json()
  json_full()
  json_xywh()
  json_xyxy()
  xywh()
  xyxy()