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)

Check if a string passes is the name of a required shape (one that must be supported by DotShapeDrawer)

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.