Shortcuts

mmpose.apis.webcam.nodes.BigeyeEffectNode

class mmpose.apis.webcam.nodes.BigeyeEffectNode(name: str, input_buffer: str, output_buffer: Union[str, List[str]], enable_key: Optional[Union[str, int]] = None, enable: bool = True, kpt_thr: float = 0.5)[源代码]

Apply big-eye effect to the objects with eye keypoints in the frame.

参数
  • name (str) – The node name (also thread name)

  • input_buffer (str) – The name of the input buffer

  • output_buffer (str|list) – The name(s) of the output buffer(s)

  • enable_key (str|int, optional) – Set a hot-key to toggle enable/disable of the node. If an int value is given, it will be treated as an ascii code of a key. Please note: (1) If enable_key is set, the bypass() method need to be overridden to define the node behavior when disabled; (2) Some hot-keys are reserved for particular use. For example: ‘q’, ‘Q’ and 27 are used for exiting. Default: None

  • enable (bool) – Default enable/disable status. Default: True

  • kpt_thr (float) – The score threshold of valid keypoints. Default: 0.5

Example::
>>> cfg = dict(
...    type='SunglassesEffectNode',
...    name='sunglasses',
...    enable_key='s',
...    enable=False,
...    input_buffer='vis',
...    output_buffer='vis_sunglasses')
>>> from mmpose.apis.webcam.nodes import NODES
>>> node = NODES.build(cfg)
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.