Shortcuts

mmpose.apis.webcam.utils.EventManager

class mmpose.apis.webcam.utils.EventManager[source]

A helper class to manage events.

EventManager provides interfaces to register, set, clear and check events by name.

__init__()[source]

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

Methods

__init__()

Initialize self.

clear([event_name, is_keyboard])

Reset the internal flag of en event to False.

is_set([event_name, is_keyboard])

Check weather the internal flag of an event is True.

register_event(event_name[, is_keyboard])

Register an event.

set(event_name[, is_keyboard])

Set the internal flag of an event to True.

wait([event_name, is_keyboard, timeout])

Block until the internal flag of an event is True.

wait_and_handle([event_name, is_keyboard])

Context manager that blocks until an evenet is set True and then goes into the context.

Read the Docs v: v0.28.0
Versions
latest
v0.28.0
v0.27.0
v0.26.0
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.