-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin_stub.pyi
More file actions
16 lines (16 loc) · 850 Bytes
/
Copy pathplugin_stub.pyi
File metadata and controls
16 lines (16 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
def init(data: dict): ...
def raise_event(values: dict): ...
def log_debug(msg, *args, **kwargs): ...
def get_time() -> float: ...
def plugin_is_focused() -> bool: ...
class PPVar:
def __init__(self, time_window: float = 0, tolerance: float = inf) -> None: ...
def update(self, new_value: float | None) -> Any: ...
def capture(regions: tuple[str] = (), file: str = None, debug=False) -> bool: ...
def match_template(template: str, region: str, filter=None, div: tuple = (0, 1, 0, 1), debug: bool = False) -> dict: ...
def get_region_fill_ratio(region: str, filter=None, div: tuple = (0, 1, 0, 1), debug: bool = False) -> float: ...
def cv_in_range(img, lower: 'tuple', upper: 'tuple'): ...
def cv_to_hsv(img): ...
def cv_to_gray(img): ...
def read_pointer(pointer_name: str, debug=False): ...
def http_get(url: str, timeout=0.1) -> dict: ...