mmpose.apis.webcam.nodes.BaseVisualizerNode¶
- class mmpose.apis.webcam.nodes.BaseVisualizerNode(name: str, input_buffer: str, output_buffer: Union[str, List[str]], enable_key: Optional[Union[str, int]] = None, enable: bool = True)[源代码]¶
Base class for nodes whose function is to create visual effects, like visualizing model predictions, showing graphics or showing text messages.
All subclass should implement the method
draw()
.- 参数
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, thebypass()
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