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)[源代码]

A helper class to manage multiple buffers.

参数
  • 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)[源代码]

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: latest
Versions
latest
1.x
v1.0.0rc0
v0.29.0
v0.28.0
v0.27.0
dev-1.x
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.