video699.quadrangle.deque

This module implements a moving convex quadrangle using the deque data structure.

Module Contents

class video699.quadrangle.deque.DequeMovingConvexQuadrangle(current_quadrangle, window_size=None)

Bases: video699.interface.MovingConvexQuadrangleABC

A convex quadrangle that moves in time represented by a deque.

Parameters:
  • current_quadrangle (ConvexQuadrangleABC) – The latest coordinates of the moving convex quadrangle.
  • window_size (int or None, optional) – The maximum number of previous time frames for which the quadrangle movements are stored. If None or unspecified, then the number of time frames is unbounded.
current_quadrangle

ConvexQuadrangleABC – The latest coordinates of the moving convex quadrangle.

Raises:ValueError – If the window size is less than two.
add(self, quadrangle)
__iter__(self)
__reversed__(self)