mouse_loop
Run a function on mouse information that is received by the window, continuously in a new thread.
>>> @mouse_loop ... def fun(mouse_event): ... print("x:{}, y:{}".format(mouse_event.x, mouse_event.y))
MouseEvent
Holds all the OpenCV mouse event information.
key_loop
>>> @key_loop ... def fun(key): ... print("key pressed:{}".format(key))
Python API
Bash API