diplomat.utils.shapes

Provides utilities and interfaces for drawing shape markers, and iterating lists of shapes and converting lists of shapes names to shapes.

Functions

shape_str(shape)

Classes

CV2DotShapeDrawer(img, color[, ...])

A shape dot or marker implementation that utilizes opencv2 for drawing.

DotShapeDrawer()

Abstract class defining an interface for drawing various markers, or dots, based on shape.

shape_iterator(sequence[, rep_count])

Allows one to iterate over a list of shape strings indefinitely, and in groups.