Shortcuts

mmpose.apis.webcam.utils.BufferManager

class mmpose.apis.webcam.utils.BufferManager(buffer_type: type = <class 'mmpose.apis.webcam.utils.buffer.Buffer'>, buffers: Optional[Dict] = None)[source]

A helper class to manage multiple buffers.

Parameters
  • buffer_type (type) – The class to build buffer instances. Default: mmpose.apis.webcam.utils.buffer.Buffer.

  • buffers (dict, optional) – Create BufferManager from existing buffers. Each item should a buffer name and the buffer. If not given, an empty buffer manager will be create. Default: None

__init__(buffer_type: type = <class 'mmpose.apis.webcam.utils.buffer.Buffer'>, buffers: Optional[Dict] = None)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__([buffer_type, buffers])

Initialize self.

get(name[, block, timeout])

Remove an return an item from the specified buffer.

get_info()

Returns the information of all buffers in the manager.

get_sub_manager(buffer_names)

Return a BufferManager instance that covers a subset of the buffers in the parent.

is_empty(name)

Check if a buffer is empty.

is_full(name)

Check if a buffer is full.

put(name, item[, block, timeout])

Put an item into specified buffer.

put_force(name, item)

Force to put an item into specified buffer.

register_buffer(name[, maxsize])

Register a buffer.

Read the Docs v: 0.x
Versions
latest
1.x
v1.0.0rc1
v0.29.0
v0.28.0
dev-1.x
0.x
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.