- desktopauto:cardocr 引擎/流水线/校验与 ocr 调整,sdk.json/pyproject/版本三处一致 - dingtalk:AI 表格读写与错误封装扩充 - aitable:client/cli/自测与打包配置更新
1477 lines
62 KiB
JSON
1477 lines
62 KiB
JSON
{
|
|
"schema_version": 1,
|
|
"sdk_id": "desktopauto",
|
|
"version": "0.5.3",
|
|
"modules": {
|
|
"desktopauto": {
|
|
"exports": [
|
|
"Screen",
|
|
"Match",
|
|
"TextItem",
|
|
"ColorMatch",
|
|
"screenshot",
|
|
"click_at",
|
|
"find",
|
|
"find_all",
|
|
"find_any",
|
|
"exists",
|
|
"wait",
|
|
"click",
|
|
"wait_gone",
|
|
"wait_any",
|
|
"wait_all",
|
|
"hover",
|
|
"hover_text",
|
|
"read_text",
|
|
"recognize",
|
|
"match_text",
|
|
"find_text",
|
|
"find_all_text",
|
|
"text_exists",
|
|
"wait_text",
|
|
"click_text",
|
|
"ocr_available",
|
|
"ocr",
|
|
"ocr_text",
|
|
"ocr_text_with_position",
|
|
"cardocr",
|
|
"ocr_card",
|
|
"ocr_cards",
|
|
"analyze_image",
|
|
"analyze_folder",
|
|
"read_bank_card_number",
|
|
"image_exists",
|
|
"wait_image",
|
|
"click_image",
|
|
"hover_image",
|
|
"wait_text_exists",
|
|
"paste",
|
|
"type_text",
|
|
"press",
|
|
"hotkey",
|
|
"send_keys",
|
|
"keys",
|
|
"clipboard",
|
|
"scroll",
|
|
"drag",
|
|
"move_mouse",
|
|
"sleep",
|
|
"fs",
|
|
"find_color",
|
|
"find_colors",
|
|
"diff",
|
|
"diff_ratio",
|
|
"colors",
|
|
"Window",
|
|
"get_window",
|
|
"foreground_window",
|
|
"activate_window",
|
|
"close_window",
|
|
"list_windows",
|
|
"find_window",
|
|
"find_windows",
|
|
"wait_window",
|
|
"child_windows",
|
|
"window_info",
|
|
"window_rect",
|
|
"run_or_open",
|
|
"launch",
|
|
"open_path",
|
|
"open_url",
|
|
"list_processes",
|
|
"is_running",
|
|
"wait_process",
|
|
"kill_process",
|
|
"process",
|
|
"mark",
|
|
"summarize"
|
|
],
|
|
"all": [
|
|
"Screen",
|
|
"Match",
|
|
"TextItem",
|
|
"ColorMatch",
|
|
"screenshot",
|
|
"click_at",
|
|
"find",
|
|
"find_all",
|
|
"find_any",
|
|
"exists",
|
|
"wait",
|
|
"click",
|
|
"wait_gone",
|
|
"wait_any",
|
|
"wait_all",
|
|
"hover",
|
|
"hover_text",
|
|
"read_text",
|
|
"recognize",
|
|
"match_text",
|
|
"find_text",
|
|
"find_all_text",
|
|
"text_exists",
|
|
"wait_text",
|
|
"click_text",
|
|
"ocr_available",
|
|
"ocr",
|
|
"ocr_text",
|
|
"ocr_text_with_position",
|
|
"cardocr",
|
|
"ocr_card",
|
|
"ocr_cards",
|
|
"analyze_image",
|
|
"analyze_folder",
|
|
"read_bank_card_number",
|
|
"image_exists",
|
|
"wait_image",
|
|
"click_image",
|
|
"hover_image",
|
|
"wait_text_exists",
|
|
"paste",
|
|
"type_text",
|
|
"press",
|
|
"hotkey",
|
|
"send_keys",
|
|
"keys",
|
|
"clipboard",
|
|
"scroll",
|
|
"drag",
|
|
"move_mouse",
|
|
"sleep",
|
|
"fs",
|
|
"find_color",
|
|
"find_colors",
|
|
"diff",
|
|
"diff_ratio",
|
|
"colors",
|
|
"Window",
|
|
"get_window",
|
|
"foreground_window",
|
|
"activate_window",
|
|
"close_window",
|
|
"list_windows",
|
|
"find_window",
|
|
"find_windows",
|
|
"wait_window",
|
|
"child_windows",
|
|
"window_info",
|
|
"window_rect",
|
|
"run_or_open",
|
|
"launch",
|
|
"open_path",
|
|
"open_url",
|
|
"list_processes",
|
|
"is_running",
|
|
"wait_process",
|
|
"kill_process",
|
|
"process",
|
|
"mark",
|
|
"summarize"
|
|
],
|
|
"signatures": {
|
|
"Screen": "(window: 'Union[int, str, None]' = None, region: 'Optional[Region]' = None, threshold: 'float' = 0.85, scales: 'Sequence[float]' = (1.0,), gray: 'bool' = True, debug_dir: 'str' = '', activate_before_click: 'bool' = True)",
|
|
"Match": "(left: 'int', top: 'int', width: 'int', height: 'int', score: 'float') -> None",
|
|
"TextItem": "(text: 'str', left: 'int', top: 'int', width: 'int', height: 'int', score: 'float') -> None",
|
|
"ColorMatch": "(left: 'int', top: 'int', width: 'int', height: 'int', area: 'int', color: 'RGB') -> None",
|
|
"screenshot": "(path: 'str' = '', region: 'Optional[Region]' = None, window: 'Union[int, str, None]' = None) -> 'str'",
|
|
"click_at": "(x: 'int', y: 'int', button: 'str' = 'left', clicks: 'int' = 1, interval: 'float' = 0.05, settle: 'float' = 0.05) -> 'None'",
|
|
"find": "(template: 'Template', **kwargs) -> 'Optional[Match]'",
|
|
"find_all": "(template: 'Template', **kwargs) -> 'List[Match]'",
|
|
"find_any": "(templates, **kwargs)",
|
|
"exists": "(template: 'Template', **kwargs) -> 'bool'",
|
|
"wait": "(template: 'Template', timeout: 'float' = 10.0, interval: 'float' = 0.5, **kwargs) -> 'Optional[Match]'",
|
|
"click": "(template: 'Template', button: 'str' = 'left', clicks: 'int' = 1, offset: 'Tuple[int, int]' = (0, 0), **kwargs) -> 'bool'",
|
|
"wait_gone": "(template: 'Template', timeout: 'float' = 10.0, interval: 'float' = 0.5, **kwargs) -> 'bool'",
|
|
"wait_any": "(templates: 'Sequence[Template]' = (), texts: 'Sequence[str]' = (), timeout: 'float' = 10.0, interval: 'float' = 0.5, **kwargs) -> 'Optional[dict]'",
|
|
"wait_all": "(templates: 'Sequence[Template]', timeout: 'float' = 10.0, interval: 'float' = 0.5, **kwargs) -> 'bool'",
|
|
"hover": "(target, offset: 'Tuple[int, int]' = (0, 0), **kwargs) -> 'bool'",
|
|
"hover_text": "(text: 'str', offset: 'Tuple[int, int]' = (0, 0), **kwargs) -> 'bool'",
|
|
"read_text": "(min_score: 'float' = 0.0, **kwargs) -> 'List[TextItem]'",
|
|
"recognize": "(image: 'Union[str, np.ndarray]', min_score: 'float' = 0.0, sort: 'bool' = True) -> 'List[TextItem]'",
|
|
"match_text": "(items: 'Sequence[TextItem]', query: 'str', exact: 'bool' = False, regex: 'bool' = False, case_sensitive: 'bool' = False) -> 'List[TextItem]'",
|
|
"find_text": "(text: 'str', **kwargs) -> 'Optional[TextItem]'",
|
|
"find_all_text": "(text: 'str', **kwargs) -> 'List[TextItem]'",
|
|
"text_exists": "(text: 'str', **kwargs) -> 'bool'",
|
|
"wait_text": "(text: 'str', timeout: 'float' = 10.0, interval: 'float' = 1.0, **kwargs) -> 'Optional[TextItem]'",
|
|
"click_text": "(text: 'str', button: 'str' = 'left', clicks: 'int' = 1, offset: 'Tuple[int, int]' = (0, 0), **kwargs) -> 'bool'",
|
|
"ocr_available": "() -> 'bool'",
|
|
"ocr_text": "(sep: 'str' = '\\n', **kwargs) -> 'str'",
|
|
"ocr_text_with_position": "(min_score: 'float' = 0.0, **kwargs) -> 'List[TextItem]'",
|
|
"ocr_card": "(path: 'str', expected_name: 'str' = '', mark_dir: 'Optional[str]' = None, extra_passes: 'bool' = True, fast: 'bool' = False) -> 'dict'",
|
|
"ocr_cards": "(root: 'str', expected_names: 'Optional[Dict[str, str]]' = None, mark_dir: 'Optional[str]' = None, extra_passes: 'bool' = True, fast: 'bool' = False, limit: 'int' = 0) -> 'List[dict]'",
|
|
"analyze_image": "(path: 'str', expected_name: 'str' = '', mark_dir: 'Optional[str]' = None, extra_passes: 'bool' = True, fast: 'bool' = False) -> 'dict'",
|
|
"analyze_folder": "(root: 'str', expected_names: 'Optional[Dict[str, str]]' = None, mark_dir: 'Optional[str]' = None, extra_passes: 'bool' = True, fast: 'bool' = False, limit: 'int' = 0) -> 'List[dict]'",
|
|
"read_bank_card_number": "(image, face_text: 'str' = '') -> 'NumberReading'",
|
|
"image_exists": "(template: 'Template', **kwargs) -> 'bool'",
|
|
"wait_image": "(template: 'Template', timeout: 'float' = 10.0, interval: 'float' = 0.5, **kwargs) -> 'Optional[Match]'",
|
|
"click_image": "(template: 'Template', button: 'str' = 'left', clicks: 'int' = 1, offset: 'Tuple[int, int]' = (0, 0), **kwargs) -> 'bool'",
|
|
"hover_image": "(target, offset: 'Tuple[int, int]' = (0, 0), **kwargs) -> 'bool'",
|
|
"wait_text_exists": "(text: 'str', timeout: 'float' = 10.0, interval: 'float' = 1.0, **kwargs) -> 'Optional[TextItem]'",
|
|
"paste": "(text: 'str', restore: 'bool' = True) -> 'None'",
|
|
"type_text": "(text: 'str', method: 'str' = 'auto', interval: 'float' = 0.01) -> 'None'",
|
|
"press": "(key: 'str', times: 'int' = 1, interval: 'float' = 0.05) -> 'None'",
|
|
"hotkey": "(*key_names: 'str', interval: 'float' = 0.02) -> 'None'",
|
|
"send_keys": "(keys_text: 'str', interval: 'float' = 0.02, delay_after: 'float' = 0.0) -> 'None'",
|
|
"scroll": "(notches: 'int' = 3, at=None, horizontal: 'bool' = False) -> 'None'",
|
|
"drag": "(src, dst, duration: 'float' = 0.5, button: 'str' = 'left') -> 'None'",
|
|
"move_mouse": "(x: 'int', y: 'int', relative_to: 'str' = 'screen', speed: 'str' = 'instant', window=None) -> 'Tuple[int, int]'",
|
|
"sleep": "(seconds: 'float' = 1.0, random_range: 'Optional[Tuple[float, float]]' = None) -> 'float'",
|
|
"find_color": "(color, **kwargs)",
|
|
"find_colors": "(colors: 'Sequence[Union[str, Sequence[int]]]', tolerance: 'int' = 12, region: 'Optional[Sequence[int]]' = None, window: 'Union[int, str, None]' = None, min_area: 'int' = 4, max_results: 'int' = 0) -> 'Dict[str, List[ColorMatch]]'",
|
|
"diff": "(baseline, **kwargs)",
|
|
"diff_ratio": "(a: 'Union[str, np.ndarray]', b: 'Optional[Union[str, np.ndarray]]' = None, tolerance: 'int' = 10, region: 'Optional[Sequence[int]]' = None, window: 'Union[int, str, None]' = None) -> 'float'",
|
|
"Window": "(hwnd: 'int')",
|
|
"get_window": "(title: 'str' = '', exact: 'bool' = False, pid: 'int' = 0, process: 'str' = '', class_name: 'str' = '', index: 'int' = 0, timeout: 'float' = 0.0) -> 'Window'",
|
|
"foreground_window": "() -> 'Optional[Window]'",
|
|
"activate_window": "(window_or_title: 'Union[int, str, Window]') -> 'int'",
|
|
"close_window": "(window_or_title: 'Union[int, str, Window]', wait: 'float' = 0.5) -> 'None'",
|
|
"list_windows": "(keyword: 'str' = '', visible_only: 'bool' = True) -> 'List[Tuple[int, str]]'",
|
|
"find_window": "(keyword: 'str') -> 'int'",
|
|
"find_windows": "(title: 'str' = '', exact: 'bool' = False, pid: 'int' = 0, process: 'str' = '', class_name: 'str' = '', visible_only: 'bool' = True, include_minimized: 'bool' = False) -> 'List[dict]'",
|
|
"wait_window": "(title: 'str' = '', timeout: 'float' = 10.0, interval: 'float' = 0.3, **kwargs) -> 'Optional[dict]'",
|
|
"child_windows": "(window: 'Union[int, str]') -> 'List[dict]'",
|
|
"window_info": "(hwnd: 'int') -> 'dict'",
|
|
"window_rect": "(window: 'Union[int, str]') -> 'Tuple[int, int, int, int]'",
|
|
"run_or_open": "(target: 'str', args: 'Sequence[str]' = (), wait: 'float' = 0.0) -> 'Optional[subprocess.Popen]'",
|
|
"launch": "(target: 'str', args: 'Sequence[str]' = (), cwd: 'Optional[str]' = None, wait: 'float' = 0.0) -> 'subprocess.Popen'",
|
|
"open_path": "(path: 'str') -> 'str'",
|
|
"open_url": "(url: 'str') -> 'str'",
|
|
"list_processes": "(name: 'str' = '', with_path: 'bool' = False) -> 'List[dict]'",
|
|
"is_running": "(name: 'str') -> 'bool'",
|
|
"wait_process": "(name: 'str', timeout: 'float' = 30.0, interval: 'float' = 0.5, until: 'str' = 'start') -> 'bool'",
|
|
"kill_process": "(target: 'Union[int, str]', wait: 'float' = 0.5) -> 'List[int]'",
|
|
"mark": "(image: 'Union[str, np.ndarray]', templates: 'Sequence[Template]', out_path: 'str' = '', threshold: 'float' = 0.85, scales: 'Sequence[float]' = (1.0,), gray: 'bool' = True, draw_click_point: 'bool' = True) -> 'Dict[str, object]'",
|
|
"summarize": "(result: 'Dict[str, object]') -> 'str'"
|
|
}
|
|
},
|
|
"desktopauto.__main__": {
|
|
"exports": [
|
|
"List",
|
|
"Optional",
|
|
"Screen",
|
|
"annotations",
|
|
"argparse",
|
|
"json",
|
|
"main",
|
|
"marking",
|
|
"ocr",
|
|
"os",
|
|
"sys",
|
|
"time"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"List": "(*args, **kwargs)",
|
|
"Optional": "(*args, **kwds)",
|
|
"Screen": "(window: 'Union[int, str, None]' = None, region: 'Optional[Region]' = None, threshold: 'float' = 0.85, scales: 'Sequence[float]' = (1.0,), gray: 'bool' = True, debug_dir: 'str' = '', activate_before_click: 'bool' = True)",
|
|
"main": "(argv: 'Optional[List[str]]' = None) -> 'int'"
|
|
}
|
|
},
|
|
"desktopauto._selftest": {
|
|
"exports": [
|
|
"EXPECTED_VERSION",
|
|
"REQUIRED_EXPORTS",
|
|
"annotations",
|
|
"main",
|
|
"matcher",
|
|
"np"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"main": "() -> 'int'"
|
|
}
|
|
},
|
|
"desktopauto._win32": {
|
|
"exports": [
|
|
"DWMWA_EXTENDED_FRAME_BOUNDS",
|
|
"IS_WINDOWS",
|
|
"List",
|
|
"MOUSEEVENTF_HWHEEL",
|
|
"MOUSEEVENTF_LEFTDOWN",
|
|
"MOUSEEVENTF_LEFTUP",
|
|
"MOUSEEVENTF_MIDDLEDOWN",
|
|
"MOUSEEVENTF_MIDDLEUP",
|
|
"MOUSEEVENTF_RIGHTDOWN",
|
|
"MOUSEEVENTF_RIGHTUP",
|
|
"MOUSEEVENTF_WHEEL",
|
|
"MOVE_SPEEDS",
|
|
"Optional",
|
|
"PROCESS_TERMINATE",
|
|
"SW_MAXIMIZE",
|
|
"SW_MINIMIZE",
|
|
"SW_RESTORE",
|
|
"Tuple",
|
|
"Union",
|
|
"WHEEL_DELTA",
|
|
"WM_CLOSE",
|
|
"activate_window",
|
|
"annotations",
|
|
"child_windows",
|
|
"click_at",
|
|
"close_window",
|
|
"ctypes",
|
|
"cursor_pos",
|
|
"drag",
|
|
"ensure_dpi_aware",
|
|
"find_windows",
|
|
"foreground_hwnd",
|
|
"is_foreground",
|
|
"is_window",
|
|
"list_windows",
|
|
"maximize_window",
|
|
"minimize_window",
|
|
"move_mouse",
|
|
"move_to",
|
|
"move_window",
|
|
"os",
|
|
"require_windows",
|
|
"resolve_hwnd",
|
|
"restore_window",
|
|
"screen_size",
|
|
"scroll",
|
|
"show_window",
|
|
"sys",
|
|
"terminate_process",
|
|
"time",
|
|
"wait_window",
|
|
"window_info",
|
|
"window_rect",
|
|
"wintypes"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"List": "(*args, **kwargs)",
|
|
"Optional": "(*args, **kwds)",
|
|
"Tuple": "(*args, **kwargs)",
|
|
"Union": "(*args, **kwds)",
|
|
"activate_window": "(window: 'Union[int, str]', wait: 'float' = 0.2) -> 'int'",
|
|
"child_windows": "(window: 'Union[int, str]', with_process: 'bool' = False) -> 'List[dict]'",
|
|
"click_at": "(x: 'int', y: 'int', button: 'str' = 'left', clicks: 'int' = 1, interval: 'float' = 0.05, settle: 'float' = 0.05) -> 'None'",
|
|
"close_window": "(hwnd: 'int', wait: 'float' = 0.0) -> 'None'",
|
|
"cursor_pos": "() -> 'Tuple[int, int]'",
|
|
"drag": "(from_xy: 'Tuple[int, int]', to_xy: 'Tuple[int, int]', duration: 'float' = 0.5, button: 'str' = 'left', steps: 'int' = 0) -> 'None'",
|
|
"ensure_dpi_aware": "() -> 'None'",
|
|
"find_windows": "(title: 'str' = '', exact: 'bool' = False, pid: 'int' = 0, process: 'str' = '', class_name: 'str' = '', visible_only: 'bool' = True, include_minimized: 'bool' = False, with_process: 'bool' = True) -> 'List[dict]'",
|
|
"foreground_hwnd": "() -> 'int'",
|
|
"is_foreground": "(hwnd: 'int') -> 'bool'",
|
|
"is_window": "(hwnd: 'int') -> 'bool'",
|
|
"list_windows": "(keyword: 'str' = '', visible_only: 'bool' = True) -> 'List[Tuple[int, str]]'",
|
|
"maximize_window": "(hwnd: 'int') -> 'None'",
|
|
"minimize_window": "(hwnd: 'int') -> 'None'",
|
|
"move_mouse": "(x: 'int', y: 'int', relative_to: 'str' = 'screen', speed: 'str' = 'instant', window: 'Union[int, str, None]' = None) -> 'Tuple[int, int]'",
|
|
"move_to": "(x: 'int', y: 'int', settle: 'float' = 0.0) -> 'None'",
|
|
"move_window": "(hwnd: 'int', x: 'int', y: 'int', width: 'Optional[int]' = None, height: 'Optional[int]' = None) -> 'None'",
|
|
"require_windows": "(what: 'str') -> 'None'",
|
|
"resolve_hwnd": "(window: 'Union[int, str]') -> 'int'",
|
|
"restore_window": "(hwnd: 'int') -> 'None'",
|
|
"screen_size": "() -> 'Tuple[int, int]'",
|
|
"scroll": "(notches: 'int' = 3, at: 'Optional[Tuple[int, int]]' = None, horizontal: 'bool' = False, settle: 'float' = 0.08) -> 'None'",
|
|
"show_window": "(hwnd: 'int', cmd: 'int') -> 'None'",
|
|
"terminate_process": "(pid: 'int', wait: 'float' = 0.5) -> 'None'",
|
|
"wait_window": "(title: 'str' = '', timeout: 'float' = 10.0, interval: 'float' = 0.3, **kwargs) -> 'Optional[dict]'",
|
|
"window_info": "(hwnd: 'int', with_process: 'bool' = True) -> 'dict'",
|
|
"window_rect": "(window: 'Union[int, str]') -> 'Tuple[int, int, int, int]'"
|
|
}
|
|
},
|
|
"desktopauto.capture": {
|
|
"exports": [
|
|
"ImageGrab",
|
|
"Optional",
|
|
"Region",
|
|
"Sequence",
|
|
"Tuple",
|
|
"Union",
|
|
"annotations",
|
|
"cv2",
|
|
"ensure_dpi_aware",
|
|
"grab",
|
|
"np",
|
|
"os",
|
|
"resolve_region",
|
|
"save_image",
|
|
"screenshot",
|
|
"time",
|
|
"window_rect"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"Optional": "(*args, **kwds)",
|
|
"Region": "(*args, **kwargs)",
|
|
"Sequence": "(*args, **kwargs)",
|
|
"Tuple": "(*args, **kwargs)",
|
|
"Union": "(*args, **kwds)",
|
|
"ensure_dpi_aware": "() -> 'None'",
|
|
"grab": "(region: 'Optional[Region]' = None, window: 'Union[int, str, None]' = None) -> 'Tuple[np.ndarray, Tuple[int, int, int, int]]'",
|
|
"resolve_region": "(region: 'Optional[Region]' = None, window: 'Union[int, str, None]' = None) -> 'Optional[Tuple[int, int, int, int]]'",
|
|
"save_image": "(img: 'np.ndarray', path: 'str') -> 'str'",
|
|
"screenshot": "(path: 'str' = '', region: 'Optional[Region]' = None, window: 'Union[int, str, None]' = None) -> 'str'",
|
|
"window_rect": "(window: 'Union[int, str]') -> 'Tuple[int, int, int, int]'"
|
|
}
|
|
},
|
|
"desktopauto.cardocr": {
|
|
"exports": [
|
|
"analyze_image",
|
|
"analyze_folder",
|
|
"check_person",
|
|
"check_persons",
|
|
"write_review_workbook",
|
|
"verify_workbook",
|
|
"__version__"
|
|
],
|
|
"all": [
|
|
"analyze_image",
|
|
"analyze_folder",
|
|
"check_person",
|
|
"check_persons",
|
|
"write_review_workbook",
|
|
"verify_workbook",
|
|
"__version__"
|
|
],
|
|
"signatures": {
|
|
"analyze_image": "(path: 'str', expected_name: 'str' = '', mark_dir: 'Optional[str]' = None, extra_passes: 'bool' = True, fast: 'bool' = False) -> 'dict'",
|
|
"analyze_folder": "(root: 'str', expected_names: 'Optional[Dict[str, str]]' = None, mark_dir: 'Optional[str]' = None, extra_passes: 'bool' = True, fast: 'bool' = False, limit: 'int' = 0) -> 'List[dict]'",
|
|
"check_person": "(person: 'dict', truth: 'Dict[str, str]') -> 'dict'",
|
|
"check_persons": "(persons: 'Sequence[dict]', truth_map: 'Dict[str, Dict[str, str]]') -> 'List[dict]'",
|
|
"write_review_workbook": "(persons, path, source_root: 'str' = '') -> 'str'",
|
|
"verify_workbook": "(path: 'str') -> 'dict'"
|
|
}
|
|
},
|
|
"desktopauto.cardocr.__main__": {
|
|
"exports": [
|
|
"main"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"main": "(argv=None) -> 'int'"
|
|
}
|
|
},
|
|
"desktopauto.cardocr.bankcard": {
|
|
"exports": [
|
|
"BANK_KEYWORDS",
|
|
"BANK_NAMES",
|
|
"BIN_BANK",
|
|
"BankCardResult",
|
|
"CardCandidate",
|
|
"Dict",
|
|
"Line",
|
|
"List",
|
|
"Optional",
|
|
"Sequence",
|
|
"annotations",
|
|
"bin_bank",
|
|
"card_candidates",
|
|
"dataclass",
|
|
"field",
|
|
"join_text",
|
|
"looks_like_bank_card",
|
|
"luhn_ok",
|
|
"normalize_text",
|
|
"parse",
|
|
"re"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"BankCardResult": "(number: 'str' = '', luhn_ok: 'bool' = False, length: 'int' = 0, bank: 'str' = '', bank_source: 'str' = '', expiry: 'str' = '', card_type: 'str' = '', found: 'bool' = False, confidence: 'str' = 'low', evidence: 'List[str]' = <factory>, candidates: 'List[dict]' = <factory>) -> None",
|
|
"CardCandidate": "(number: 'str', digits: 'int', luhn_ok: 'bool', prefix: 'str' = '', bank: 'str' = '', origin: 'str' = 'raw', edits: 'int' = 0, votes: 'int' = 1, score: 'float' = 0.0) -> None",
|
|
"Dict": "(*args, **kwargs)",
|
|
"Line": "(text: 'str', left: 'int', top: 'int', width: 'int', height: 'int', score: 'float') -> None",
|
|
"List": "(*args, **kwargs)",
|
|
"Optional": "(*args, **kwds)",
|
|
"Sequence": "(*args, **kwargs)",
|
|
"bin_bank": "(no: 'str') -> 'str'",
|
|
"card_candidates": "(text: 'Union[str, Sequence[str]]', want_lengths: 'Sequence[int]' = (16, 19, 18), limit: 'int' = 8, exclude: 'Sequence[str]' = ()) -> 'List[CardCandidate]'",
|
|
"dataclass": "(cls=None, /, *, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, match_args=True, kw_only=False, slots=False, weakref_slot=False)",
|
|
"field": "(*, default=<dataclasses._MISSING_TYPE object at 0xADDR>, default_factory=<dataclasses._MISSING_TYPE object at 0xADDR>, init=True, repr=True, hash=None, compare=True, metadata=None, kw_only=<dataclasses._MISSING_TYPE object at 0xADDR>)",
|
|
"join_text": "(items: 'List[Line]') -> 'str'",
|
|
"looks_like_bank_card": "(text: 'str') -> 'bool'",
|
|
"luhn_ok": "(no: 'str') -> 'bool'",
|
|
"normalize_text": "(text: 'str') -> 'str'",
|
|
"parse": "(lines: 'Sequence[Line]', full_text: 'str' = '', exclude: 'Sequence[str]' = (), rows: 'Optional[Sequence[str]]' = None) -> 'BankCardResult'"
|
|
}
|
|
},
|
|
"desktopauto.cardocr.cards": {
|
|
"exports": [
|
|
"CARD_ASPECT",
|
|
"CardRegion",
|
|
"List",
|
|
"Optional",
|
|
"Sequence",
|
|
"Tuple",
|
|
"annotations",
|
|
"cv2",
|
|
"dataclass",
|
|
"expand_pts",
|
|
"find_card_color",
|
|
"find_cards",
|
|
"four_point_warp",
|
|
"locate_bank_card",
|
|
"np",
|
|
"order_points",
|
|
"quad_area",
|
|
"sqrt_",
|
|
"to_gray"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"CardRegion": "(pts: 'np.ndarray', area: 'float', aspect: 'float', score: 'float', warped: 'Optional[np.ndarray]' = None, source: 'str' = 'contour') -> None",
|
|
"List": "(*args, **kwargs)",
|
|
"Optional": "(*args, **kwds)",
|
|
"Sequence": "(*args, **kwargs)",
|
|
"Tuple": "(*args, **kwargs)",
|
|
"dataclass": "(cls=None, /, *, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, match_args=True, kw_only=False, slots=False, weakref_slot=False)",
|
|
"expand_pts": "(pts: 'np.ndarray', ratio: 'float', shape: 'Tuple[int, int]') -> 'np.ndarray'",
|
|
"find_card_color": "(img: 'np.ndarray', warp_width: 'int' = 1712) -> 'Optional[CardRegion]'",
|
|
"find_cards": "(img: 'np.ndarray', max_cards: 'int' = 3, warp_width: 'int' = 0) -> 'List[CardRegion]'",
|
|
"four_point_warp": "(img: 'np.ndarray', pts: 'Sequence[Sequence[float]]', width: 'int' = 0, height: 'int' = 0) -> 'Tuple[np.ndarray, np.ndarray]'",
|
|
"locate_bank_card": "(img: 'np.ndarray', warp_width: 'int' = 1712) -> 'Optional[np.ndarray]'",
|
|
"order_points": "(pts: 'Sequence[Sequence[float]]') -> 'np.ndarray'",
|
|
"quad_area": "(pts: 'np.ndarray') -> 'float'",
|
|
"sqrt_": "(x: 'float') -> 'float'",
|
|
"to_gray": "(img: 'np.ndarray') -> 'np.ndarray'"
|
|
}
|
|
},
|
|
"desktopauto.cardocr.cli": {
|
|
"exports": [
|
|
"Path",
|
|
"analyze_folder",
|
|
"analyze_image",
|
|
"annotations",
|
|
"argparse",
|
|
"check_persons",
|
|
"json",
|
|
"load_persons",
|
|
"load_truth_workbook",
|
|
"logging",
|
|
"main",
|
|
"print_report",
|
|
"print_verify",
|
|
"summary_table",
|
|
"sys",
|
|
"verify_workbook",
|
|
"write_review_workbook"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"Path": "(*args, **kwargs)",
|
|
"analyze_folder": "(root: 'str', expected_names: 'Optional[Dict[str, str]]' = None, mark_dir: 'Optional[str]' = None, extra_passes: 'bool' = True, fast: 'bool' = False, limit: 'int' = 0) -> 'List[dict]'",
|
|
"analyze_image": "(path: 'str', expected_name: 'str' = '', mark_dir: 'Optional[str]' = None, extra_passes: 'bool' = True, fast: 'bool' = False) -> 'dict'",
|
|
"check_persons": "(persons: 'Sequence[dict]', truth_map: 'Dict[str, Dict[str, str]]') -> 'List[dict]'",
|
|
"load_persons": "(json_path: 'str') -> 'List[dict]'",
|
|
"load_truth_workbook": "(path: 'str') -> 'Dict[str, Dict[str, str]]'",
|
|
"main": "(argv=None) -> 'int'",
|
|
"print_report": "(rows: 'Sequence[dict]') -> 'str'",
|
|
"print_verify": "(result: 'dict') -> 'None'",
|
|
"summary_table": "(persons: 'Sequence[dict]') -> 'str'",
|
|
"verify_workbook": "(path: 'str') -> 'dict'",
|
|
"write_review_workbook": "(persons: 'Sequence[dict]', path: 'str', source_root: 'str' = '') -> 'str'"
|
|
}
|
|
},
|
|
"desktopauto.cardocr.engine": {
|
|
"exports": [
|
|
"Iterable",
|
|
"Line",
|
|
"List",
|
|
"Optional",
|
|
"annotations",
|
|
"dataclass",
|
|
"engine_available",
|
|
"join_text",
|
|
"lines",
|
|
"load",
|
|
"logger",
|
|
"logging",
|
|
"np",
|
|
"row_texts",
|
|
"row_texts_multi",
|
|
"text_line",
|
|
"threading"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"Iterable": "(*args, **kwargs)",
|
|
"Line": "(text: 'str', left: 'int', top: 'int', width: 'int', height: 'int', score: 'float') -> None",
|
|
"List": "(*args, **kwargs)",
|
|
"Optional": "(*args, **kwds)",
|
|
"dataclass": "(cls=None, /, *, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, match_args=True, kw_only=False, slots=False, weakref_slot=False)",
|
|
"engine_available": "() -> 'bool'",
|
|
"join_text": "(items: 'List[Line]') -> 'str'",
|
|
"lines": "(img: 'np.ndarray', min_score: 'float' = 0.0) -> 'List[Line]'",
|
|
"load": "(path: 'str') -> 'Optional[np.ndarray]'",
|
|
"row_texts": "(items: 'List[Line]', y_tol: 'float' = 0.75, gap_factor: 'float' = 1.6) -> 'List[str]'",
|
|
"row_texts_multi": "(views: 'Iterable') -> 'List[str]'",
|
|
"text_line": "(img: 'np.ndarray') -> 'str'"
|
|
}
|
|
},
|
|
"desktopauto.cardocr.enhance": {
|
|
"exports": [
|
|
"Dict",
|
|
"GroupRead",
|
|
"List",
|
|
"NumberReading",
|
|
"Optional",
|
|
"Sequence",
|
|
"Tuple",
|
|
"annotations",
|
|
"bin_bank",
|
|
"cv2",
|
|
"dataclass",
|
|
"digitize",
|
|
"field",
|
|
"find_number_bands",
|
|
"imread",
|
|
"logger",
|
|
"logging",
|
|
"luhn_ok",
|
|
"np",
|
|
"prefix_ok",
|
|
"read_bank_card_number",
|
|
"text_line",
|
|
"time",
|
|
"to_gray"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"Dict": "(*args, **kwargs)",
|
|
"GroupRead": "(rect: 'Tuple[int, int, int, int]', offset: 'float', reads: 'Dict[str, str]' = <factory>, digits: 'str' = '', votes: 'List[Dict[str, int]]' = <factory>) -> None",
|
|
"List": "(*args, **kwargs)",
|
|
"NumberReading": "(number: 'str' = '', luhn_ok: 'bool' = False, length: 'int' = 0, bank: 'str' = '', confidence: 'str' = 'low', status: 'str' = 'failed', band: 'Tuple[int, int, int, int]' = (0, 0, 0, 0), groups: 'List[GroupRead]' = <factory>, candidates: 'List[dict]' = <factory>, elapsed_s: 'float' = 0.0) -> None",
|
|
"Optional": "(*args, **kwds)",
|
|
"Sequence": "(*args, **kwargs)",
|
|
"Tuple": "(*args, **kwargs)",
|
|
"bin_bank": "(no: 'str') -> 'str'",
|
|
"dataclass": "(cls=None, /, *, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, match_args=True, kw_only=False, slots=False, weakref_slot=False)",
|
|
"digitize": "(text: 'str') -> 'Tuple[str, List[int]]'",
|
|
"field": "(*, default=<dataclasses._MISSING_TYPE object at 0xADDR>, default_factory=<dataclasses._MISSING_TYPE object at 0xADDR>, init=True, repr=True, hash=None, compare=True, metadata=None, kw_only=<dataclasses._MISSING_TYPE object at 0xADDR>)",
|
|
"find_number_bands": "(gray: 'np.ndarray', limit: 'int' = 3) -> 'List[Tuple[int, int, int, int]]'",
|
|
"imread": "(path: 'str') -> 'np.ndarray'",
|
|
"luhn_ok": "(no: 'str') -> 'bool'",
|
|
"prefix_ok": "(no: 'str') -> 'bool'",
|
|
"read_bank_card_number": "(image, face_text: 'str' = '') -> 'NumberReading'",
|
|
"text_line": "(img: 'np.ndarray') -> 'str'",
|
|
"to_gray": "(img: 'np.ndarray') -> 'np.ndarray'"
|
|
}
|
|
},
|
|
"desktopauto.cardocr.idcard": {
|
|
"exports": [
|
|
"Dict",
|
|
"ID_KEYWORDS",
|
|
"IdCandidate",
|
|
"IdCardResult",
|
|
"Line",
|
|
"List",
|
|
"Optional",
|
|
"Sequence",
|
|
"annotations",
|
|
"dataclass",
|
|
"field",
|
|
"id_birth",
|
|
"id_candidates",
|
|
"id_checksum_ok",
|
|
"id_gender",
|
|
"id_plausible",
|
|
"id_region",
|
|
"join_text",
|
|
"looks_like_id",
|
|
"normalize_text",
|
|
"parse",
|
|
"re"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"Dict": "(*args, **kwargs)",
|
|
"IdCandidate": "(number: 'str', checksum_ok: 'bool', origin: 'str' = 'raw', edits: 'int' = 0, score: 'float' = 0.0) -> None",
|
|
"IdCardResult": "(number: 'str' = '', checksum_ok: 'bool' = False, birth: 'str' = '', gender: 'str' = '', name: 'str' = '', ethnicity: 'str' = '', address: 'str' = '', issue: 'str' = '', valid_to: 'str' = '', confidence: 'str' = 'low', evidence: 'List[str]' = <factory>, candidates: 'List[dict]' = <factory>, found: 'bool' = False) -> None",
|
|
"Line": "(text: 'str', left: 'int', top: 'int', width: 'int', height: 'int', score: 'float') -> None",
|
|
"List": "(*args, **kwargs)",
|
|
"Optional": "(*args, **kwds)",
|
|
"Sequence": "(*args, **kwargs)",
|
|
"dataclass": "(cls=None, /, *, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, match_args=True, kw_only=False, slots=False, weakref_slot=False)",
|
|
"field": "(*, default=<dataclasses._MISSING_TYPE object at 0xADDR>, default_factory=<dataclasses._MISSING_TYPE object at 0xADDR>, init=True, repr=True, hash=None, compare=True, metadata=None, kw_only=<dataclasses._MISSING_TYPE object at 0xADDR>)",
|
|
"id_birth": "(no: 'str') -> 'str'",
|
|
"id_candidates": "(text: 'Union[str, Sequence[str]]', limit: 'int' = 8) -> 'List[IdCandidate]'",
|
|
"id_checksum_ok": "(no: 'str') -> 'bool'",
|
|
"id_gender": "(no: 'str') -> 'str'",
|
|
"id_plausible": "(no: 'str') -> 'bool'",
|
|
"id_region": "(no: 'str') -> 'str'",
|
|
"join_text": "(items: 'List[Line]') -> 'str'",
|
|
"looks_like_id": "(text: 'str') -> 'bool'",
|
|
"normalize_text": "(text: 'str') -> 'str'",
|
|
"parse": "(lines: 'Sequence[Line]', expected_name: 'str' = '', full_text: 'str' = '', rows: 'Optional[Sequence[str]]' = None) -> 'IdCardResult'"
|
|
}
|
|
},
|
|
"desktopauto.cardocr.img": {
|
|
"exports": [
|
|
"CARD_ASPECT",
|
|
"Iterable",
|
|
"List",
|
|
"Optional",
|
|
"Sequence",
|
|
"Tuple",
|
|
"annotations",
|
|
"apply_exif",
|
|
"cv2",
|
|
"four_point_warp",
|
|
"gray_variants",
|
|
"imread",
|
|
"iou_rect",
|
|
"np",
|
|
"order_points",
|
|
"os",
|
|
"quad_area",
|
|
"resize_side",
|
|
"rotate90",
|
|
"to_gray"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"Iterable": "(*args, **kwargs)",
|
|
"List": "(*args, **kwargs)",
|
|
"Optional": "(*args, **kwds)",
|
|
"Sequence": "(*args, **kwargs)",
|
|
"Tuple": "(*args, **kwargs)",
|
|
"apply_exif": "(img: 'np.ndarray', path: 'str') -> 'np.ndarray'",
|
|
"four_point_warp": "(img: 'np.ndarray', pts: 'Sequence[Sequence[float]]', width: 'int' = 0, height: 'int' = 0) -> 'Tuple[np.ndarray, np.ndarray]'",
|
|
"gray_variants": "(gray: 'np.ndarray', upscale: 'float' = 1.0) -> 'List[Tuple[str, np.ndarray]]'",
|
|
"imread": "(path: 'str') -> 'np.ndarray'",
|
|
"iou_rect": "(a: 'Tuple[int, int, int, int]', b: 'Tuple[int, int, int, int]') -> 'float'",
|
|
"order_points": "(pts: 'Sequence[Sequence[float]]') -> 'np.ndarray'",
|
|
"quad_area": "(pts: 'np.ndarray') -> 'float'",
|
|
"resize_side": "(img: 'np.ndarray', max_side: 'int' = 0, min_side: 'int' = 0) -> 'np.ndarray'",
|
|
"rotate90": "(img: 'np.ndarray', k: 'int') -> 'np.ndarray'",
|
|
"to_gray": "(img: 'np.ndarray') -> 'np.ndarray'"
|
|
}
|
|
},
|
|
"desktopauto.cardocr.match": {
|
|
"exports": [
|
|
"Dict",
|
|
"EXACT",
|
|
"Iterable",
|
|
"LABEL",
|
|
"List",
|
|
"PARTIAL",
|
|
"PRIMARY",
|
|
"STRONG",
|
|
"Sequence",
|
|
"Tuple",
|
|
"WEAK",
|
|
"annotations",
|
|
"bin_bank",
|
|
"check_person",
|
|
"check_persons",
|
|
"coverage",
|
|
"difflib",
|
|
"digits",
|
|
"normalize_text",
|
|
"print_report"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"Dict": "(*args, **kwargs)",
|
|
"Iterable": "(*args, **kwargs)",
|
|
"List": "(*args, **kwargs)",
|
|
"Sequence": "(*args, **kwargs)",
|
|
"Tuple": "(*args, **kwargs)",
|
|
"bin_bank": "(no: 'str') -> 'str'",
|
|
"check_person": "(person: 'dict', truth: 'Dict[str, str]') -> 'dict'",
|
|
"check_persons": "(persons: 'Sequence[dict]', truth_map: 'Dict[str, Dict[str, str]]') -> 'List[dict]'",
|
|
"coverage": "(expected: 'str', runs: 'Iterable[str]', card_mode: 'bool' = True, id_digits: 'str' = '') -> 'Tuple[float, str, str]'",
|
|
"digits": "(text: 'str') -> 'str'",
|
|
"normalize_text": "(text: 'str') -> 'str'",
|
|
"print_report": "(rows: 'Sequence[dict]') -> 'str'"
|
|
}
|
|
},
|
|
"desktopauto.cardocr.pipeline": {
|
|
"exports": [
|
|
"Dict",
|
|
"IMAGE_EXT",
|
|
"Line",
|
|
"List",
|
|
"Optional",
|
|
"PRIMARY",
|
|
"Path",
|
|
"Sequence",
|
|
"Tuple",
|
|
"View",
|
|
"analyze_folder",
|
|
"analyze_image",
|
|
"annotations",
|
|
"apply_exif",
|
|
"bankcard",
|
|
"bline",
|
|
"card_candidates",
|
|
"classify",
|
|
"cv2",
|
|
"dataclass",
|
|
"field",
|
|
"find_cards",
|
|
"gray_variants",
|
|
"group_blocks",
|
|
"hashlib",
|
|
"id_candidates",
|
|
"idcard",
|
|
"idline",
|
|
"imread",
|
|
"join_text",
|
|
"locate_bank_card",
|
|
"logger",
|
|
"logging",
|
|
"normalize_text",
|
|
"np",
|
|
"number_runs",
|
|
"ocr_lines",
|
|
"os",
|
|
"resize_side",
|
|
"rotate90",
|
|
"row_texts",
|
|
"rows_of",
|
|
"sha256_file",
|
|
"summary_table",
|
|
"text_line",
|
|
"time",
|
|
"to_gray"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"Dict": "(*args, **kwargs)",
|
|
"Line": "(text: 'str', left: 'int', top: 'int', width: 'int', height: 'int', score: 'float') -> None",
|
|
"List": "(*args, **kwargs)",
|
|
"Optional": "(*args, **kwds)",
|
|
"Path": "(*args, **kwargs)",
|
|
"Sequence": "(*args, **kwargs)",
|
|
"Tuple": "(*args, **kwargs)",
|
|
"View": "(name: 'str', image: 'np.ndarray', source: 'str', rect: 'Tuple[int, int, int, int]', lines: 'List[Line]' = <factory>, text: 'str' = '', kind: 'str' = 'unknown') -> None",
|
|
"analyze_folder": "(root: 'str', expected_names: 'Optional[Dict[str, str]]' = None, mark_dir: 'Optional[str]' = None, extra_passes: 'bool' = True, fast: 'bool' = False, limit: 'int' = 0) -> 'List[dict]'",
|
|
"analyze_image": "(path: 'str', expected_name: 'str' = '', mark_dir: 'Optional[str]' = None, extra_passes: 'bool' = True, fast: 'bool' = False) -> 'dict'",
|
|
"apply_exif": "(img: 'np.ndarray', path: 'str') -> 'np.ndarray'",
|
|
"bline": "(views: 'Sequence[View]', kind: 'str') -> 'List[Line]'",
|
|
"card_candidates": "(text: 'Union[str, Sequence[str]]', want_lengths: 'Sequence[int]' = (16, 19, 18), limit: 'int' = 8, exclude: 'Sequence[str]' = ()) -> 'List[CardCandidate]'",
|
|
"classify": "(text: 'str') -> 'str'",
|
|
"dataclass": "(cls=None, /, *, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, match_args=True, kw_only=False, slots=False, weakref_slot=False)",
|
|
"field": "(*, default=<dataclasses._MISSING_TYPE object at 0xADDR>, default_factory=<dataclasses._MISSING_TYPE object at 0xADDR>, init=True, repr=True, hash=None, compare=True, metadata=None, kw_only=<dataclasses._MISSING_TYPE object at 0xADDR>)",
|
|
"find_cards": "(img: 'np.ndarray', max_cards: 'int' = 3, warp_width: 'int' = 0) -> 'List[CardRegion]'",
|
|
"gray_variants": "(gray: 'np.ndarray', upscale: 'float' = 1.0) -> 'List[Tuple[str, np.ndarray]]'",
|
|
"group_blocks": "(lines: 'Sequence[Line]', max_blocks: 'int' = 12) -> 'List[List[Line]]'",
|
|
"id_candidates": "(text: 'Union[str, Sequence[str]]', limit: 'int' = 8) -> 'List[IdCandidate]'",
|
|
"idline": "(views: 'Sequence[View]', kind: 'str') -> 'List[Line]'",
|
|
"imread": "(path: 'str') -> 'np.ndarray'",
|
|
"join_text": "(items: 'List[Line]') -> 'str'",
|
|
"locate_bank_card": "(img: 'np.ndarray', warp_width: 'int' = 1712) -> 'Optional[np.ndarray]'",
|
|
"normalize_text": "(text: 'str') -> 'str'",
|
|
"number_runs": "(text: 'str', min_len: 'int' = 6) -> 'List[str]'",
|
|
"ocr_lines": "(img: 'np.ndarray', min_score: 'float' = 0.0) -> 'List[Line]'",
|
|
"resize_side": "(img: 'np.ndarray', max_side: 'int' = 0, min_side: 'int' = 0) -> 'np.ndarray'",
|
|
"rotate90": "(img: 'np.ndarray', k: 'int') -> 'np.ndarray'",
|
|
"row_texts": "(items: 'List[Line]', y_tol: 'float' = 0.75, gap_factor: 'float' = 1.6) -> 'List[str]'",
|
|
"rows_of": "(views: 'Sequence[View]', kind: 'str' = '') -> 'List[str]'",
|
|
"sha256_file": "(p: 'Path') -> 'str'",
|
|
"summary_table": "(persons: 'Sequence[dict]') -> 'str'",
|
|
"text_line": "(img: 'np.ndarray') -> 'str'",
|
|
"to_gray": "(img: 'np.ndarray') -> 'np.ndarray'"
|
|
}
|
|
},
|
|
"desktopauto.cardocr.review": {
|
|
"exports": [
|
|
"Alignment",
|
|
"BORDER",
|
|
"Border",
|
|
"Dict",
|
|
"Font",
|
|
"HEADER_FILL",
|
|
"IMAGE_COLS",
|
|
"INPUT_FILL",
|
|
"List",
|
|
"Optional",
|
|
"PERSON_COLS",
|
|
"PatternFill",
|
|
"Sequence",
|
|
"Side",
|
|
"THIN",
|
|
"Workbook",
|
|
"annotations",
|
|
"get_column_letter",
|
|
"json",
|
|
"load_persons",
|
|
"load_truth_workbook",
|
|
"load_workbook",
|
|
"print_verify",
|
|
"verify_workbook",
|
|
"write_review_workbook"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"Alignment": "(horizontal=None, vertical=None, textRotation=0, wrapText=None, shrinkToFit=None, indent=0, relativeIndent=0, justifyLastLine=None, readingOrder=0, text_rotation=None, wrap_text=None, shrink_to_fit=None, mergeCell=None)",
|
|
"Border": "(left=None, right=None, top=None, bottom=None, diagonal=None, diagonal_direction=None, vertical=None, horizontal=None, diagonalUp=False, diagonalDown=False, outline=True, start=None, end=None)",
|
|
"Dict": "(*args, **kwargs)",
|
|
"Font": "(name=None, sz=None, b=None, i=None, charset=None, u=None, strike=None, color=None, scheme=None, family=None, size=None, bold=None, italic=None, strikethrough=None, underline=None, vertAlign=None, outline=None, shadow=None, condense=None, extend=None)",
|
|
"List": "(*args, **kwargs)",
|
|
"Optional": "(*args, **kwds)",
|
|
"PatternFill": "(patternType=None, fgColor=<openpyxl.styles.colors.Color object>\nParameters:\nrgb='00000000', indexed=None, auto=None, theme=None, tint=0.0, type='rgb', bgColor=<openpyxl.styles.colors.Color object>\nParameters:\nrgb='00000000', indexed=None, auto=None, theme=None, tint=0.0, type='rgb', fill_type=None, start_color=None, end_color=None)",
|
|
"Sequence": "(*args, **kwargs)",
|
|
"Side": "(style=None, color=None, border_style=None)",
|
|
"Workbook": "(write_only=False, iso_dates=False)",
|
|
"get_column_letter": "(col_idx)",
|
|
"load_persons": "(json_path: 'str') -> 'List[dict]'",
|
|
"load_truth_workbook": "(path: 'str') -> 'Dict[str, Dict[str, str]]'",
|
|
"load_workbook": "(filename, read_only=False, keep_vba=False, data_only=False, keep_links=True, rich_text=False)",
|
|
"print_verify": "(result: 'dict') -> 'None'",
|
|
"verify_workbook": "(path: 'str') -> 'dict'",
|
|
"write_review_workbook": "(persons: 'Sequence[dict]', path: 'str', source_root: 'str' = '') -> 'str'"
|
|
}
|
|
},
|
|
"desktopauto.cardocr.validators": {
|
|
"exports": [
|
|
"BIN_BANK",
|
|
"CardCandidate",
|
|
"Dict",
|
|
"IdCandidate",
|
|
"Iterable",
|
|
"List",
|
|
"Optional",
|
|
"PRIMARY",
|
|
"Sequence",
|
|
"Tuple",
|
|
"Union",
|
|
"annotations",
|
|
"bin_bank",
|
|
"card_candidates",
|
|
"consensus",
|
|
"dataclass",
|
|
"digit_runs",
|
|
"digitize",
|
|
"field",
|
|
"id_birth",
|
|
"id_candidates",
|
|
"id_checksum_ok",
|
|
"id_gender",
|
|
"id_plausible",
|
|
"id_region",
|
|
"luhn_check_digit",
|
|
"luhn_ok",
|
|
"normalize_text",
|
|
"prefix_ok",
|
|
"re"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"CardCandidate": "(number: 'str', digits: 'int', luhn_ok: 'bool', prefix: 'str' = '', bank: 'str' = '', origin: 'str' = 'raw', edits: 'int' = 0, votes: 'int' = 1, score: 'float' = 0.0) -> None",
|
|
"Dict": "(*args, **kwargs)",
|
|
"IdCandidate": "(number: 'str', checksum_ok: 'bool', origin: 'str' = 'raw', edits: 'int' = 0, score: 'float' = 0.0) -> None",
|
|
"Iterable": "(*args, **kwargs)",
|
|
"List": "(*args, **kwargs)",
|
|
"Optional": "(*args, **kwds)",
|
|
"Sequence": "(*args, **kwargs)",
|
|
"Tuple": "(*args, **kwargs)",
|
|
"Union": "(*args, **kwds)",
|
|
"bin_bank": "(no: 'str') -> 'str'",
|
|
"card_candidates": "(text: 'Union[str, Sequence[str]]', want_lengths: 'Sequence[int]' = (16, 19, 18), limit: 'int' = 8, exclude: 'Sequence[str]' = ()) -> 'List[CardCandidate]'",
|
|
"consensus": "(numbers: 'Iterable[str]') -> 'List[str]'",
|
|
"dataclass": "(cls=None, /, *, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, match_args=True, kw_only=False, slots=False, weakref_slot=False)",
|
|
"digit_runs": "(text: 'str', min_len: 'int' = 13) -> 'List[str]'",
|
|
"digitize": "(text: 'str') -> 'Tuple[str, List[int]]'",
|
|
"field": "(*, default=<dataclasses._MISSING_TYPE object at 0xADDR>, default_factory=<dataclasses._MISSING_TYPE object at 0xADDR>, init=True, repr=True, hash=None, compare=True, metadata=None, kw_only=<dataclasses._MISSING_TYPE object at 0xADDR>)",
|
|
"id_birth": "(no: 'str') -> 'str'",
|
|
"id_candidates": "(text: 'Union[str, Sequence[str]]', limit: 'int' = 8) -> 'List[IdCandidate]'",
|
|
"id_checksum_ok": "(no: 'str') -> 'bool'",
|
|
"id_gender": "(no: 'str') -> 'str'",
|
|
"id_plausible": "(no: 'str') -> 'bool'",
|
|
"id_region": "(no: 'str') -> 'str'",
|
|
"luhn_check_digit": "(prefix: 'str') -> 'str'",
|
|
"luhn_ok": "(no: 'str') -> 'bool'",
|
|
"normalize_text": "(text: 'str') -> 'str'",
|
|
"prefix_ok": "(no: 'str') -> 'bool'"
|
|
}
|
|
},
|
|
"desktopauto.clipboard": {
|
|
"exports": [
|
|
"CF_UNICODETEXT",
|
|
"GMEM_MOVEABLE",
|
|
"Optional",
|
|
"annotations",
|
|
"ctypes",
|
|
"get_text",
|
|
"paste",
|
|
"require_windows",
|
|
"set_text",
|
|
"time",
|
|
"wintypes"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"Optional": "(*args, **kwds)",
|
|
"get_text": "() -> 'str'",
|
|
"paste": "(text: 'str', restore: 'bool' = True, delay: 'float' = 0.05) -> 'str'",
|
|
"require_windows": "(what: 'str') -> 'None'",
|
|
"set_text": "(text: 'str') -> 'None'"
|
|
}
|
|
},
|
|
"desktopauto.colors": {
|
|
"exports": [
|
|
"ColorMatch",
|
|
"Dict",
|
|
"List",
|
|
"Optional",
|
|
"RGB",
|
|
"Sequence",
|
|
"Tuple",
|
|
"Union",
|
|
"annotations",
|
|
"capture",
|
|
"cv2",
|
|
"dataclass",
|
|
"diff",
|
|
"diff_ratio",
|
|
"find_color",
|
|
"find_color_in",
|
|
"find_colors",
|
|
"np",
|
|
"parse_color"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"ColorMatch": "(left: 'int', top: 'int', width: 'int', height: 'int', area: 'int', color: 'RGB') -> None",
|
|
"Dict": "(*args, **kwargs)",
|
|
"List": "(*args, **kwargs)",
|
|
"Optional": "(*args, **kwds)",
|
|
"RGB": "(*args, **kwargs)",
|
|
"Sequence": "(*args, **kwargs)",
|
|
"Tuple": "(*args, **kwargs)",
|
|
"Union": "(*args, **kwds)",
|
|
"dataclass": "(cls=None, /, *, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, match_args=True, kw_only=False, slots=False, weakref_slot=False)",
|
|
"diff": "(a: 'Union[str, np.ndarray]', b: 'Optional[Union[str, np.ndarray]]' = None, tolerance: 'int' = 10, min_area: 'int' = 30, region: 'Optional[Sequence[int]]' = None, window: 'Union[int, str, None]' = None) -> 'dict'",
|
|
"diff_ratio": "(a: 'Union[str, np.ndarray]', b: 'Optional[Union[str, np.ndarray]]' = None, tolerance: 'int' = 10, region: 'Optional[Sequence[int]]' = None, window: 'Union[int, str, None]' = None) -> 'float'",
|
|
"find_color": "(color: 'Union[str, Sequence[int]]', tolerance: 'int' = 12, region: 'Optional[Sequence[int]]' = None, window: 'Union[int, str, None]' = None, min_area: 'int' = 4, max_results: 'int' = 0) -> 'List[ColorMatch]'",
|
|
"find_color_in": "(image: 'np.ndarray', color: 'Union[str, Sequence[int]]', tolerance: 'int' = 12, min_area: 'int' = 4, max_results: 'int' = 0, origin: 'Tuple[int, int]' = (0, 0)) -> 'List[ColorMatch]'",
|
|
"find_colors": "(colors: 'Sequence[Union[str, Sequence[int]]]', tolerance: 'int' = 12, region: 'Optional[Sequence[int]]' = None, window: 'Union[int, str, None]' = None, min_area: 'int' = 4, max_results: 'int' = 0) -> 'Dict[str, List[ColorMatch]]'",
|
|
"parse_color": "(color: 'Union[str, Sequence[int]]') -> 'RGB'"
|
|
}
|
|
},
|
|
"desktopauto.fs": {
|
|
"exports": [
|
|
"List",
|
|
"Optional",
|
|
"Path",
|
|
"PathLike",
|
|
"Union",
|
|
"annotations",
|
|
"append_line",
|
|
"copy",
|
|
"delete",
|
|
"dir_exists",
|
|
"ensure_dir",
|
|
"exists",
|
|
"file_exists",
|
|
"fnmatch",
|
|
"list_files",
|
|
"make_dir",
|
|
"move",
|
|
"newest_file",
|
|
"os",
|
|
"read_text",
|
|
"shutil",
|
|
"time",
|
|
"wait_file",
|
|
"wait_file_gone",
|
|
"write_text"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"List": "(*args, **kwargs)",
|
|
"Optional": "(*args, **kwds)",
|
|
"Path": "(*args, **kwargs)",
|
|
"PathLike": "(*args, **kwargs)",
|
|
"Union": "(*args, **kwds)",
|
|
"append_line": "(path: 'PathLike', text: 'str', encoding: 'str' = 'utf-8') -> 'str'",
|
|
"copy": "(src: 'PathLike', dst: 'PathLike', overwrite: 'bool' = True) -> 'str'",
|
|
"delete": "(path: 'PathLike', missing_ok: 'bool' = True) -> 'bool'",
|
|
"dir_exists": "(path: 'PathLike') -> 'bool'",
|
|
"ensure_dir": "(path: 'PathLike') -> 'str'",
|
|
"exists": "(path: 'PathLike') -> 'bool'",
|
|
"file_exists": "(path: 'PathLike') -> 'bool'",
|
|
"list_files": "(folder: 'PathLike', pattern: 'str' = '*', recursive: 'bool' = False, ext: 'Union[str, List[str], None]' = None) -> 'List[str]'",
|
|
"make_dir": "(parent: 'PathLike', name: 'str' = '') -> 'str'",
|
|
"move": "(src: 'PathLike', dst: 'PathLike', overwrite: 'bool' = True) -> 'str'",
|
|
"newest_file": "(folder: 'PathLike', pattern: 'str' = '*', recursive: 'bool' = False) -> 'Optional[str]'",
|
|
"read_text": "(path: 'PathLike', encoding: 'Optional[str]' = None) -> 'str'",
|
|
"wait_file": "(path: 'PathLike', timeout: 'float' = 30.0, interval: 'float' = 0.5, min_size: 'int' = 1) -> 'bool'",
|
|
"wait_file_gone": "(path: 'PathLike', timeout: 'float' = 30.0, interval: 'float' = 0.5) -> 'bool'",
|
|
"write_text": "(path: 'PathLike', text: 'str', encoding: 'str' = 'utf-8', append: 'bool' = False) -> 'str'"
|
|
}
|
|
},
|
|
"desktopauto.keys": {
|
|
"exports": [
|
|
"HARDWAREINPUT",
|
|
"INPUT",
|
|
"INPUT_KEYBOARD",
|
|
"Iterable",
|
|
"KEYBDINPUT",
|
|
"KEYEVENTF_EXTENDEDKEY",
|
|
"KEYEVENTF_KEYUP",
|
|
"KEYEVENTF_UNICODE",
|
|
"List",
|
|
"MOUSEINPUT",
|
|
"Optional",
|
|
"Sequence",
|
|
"VK",
|
|
"annotations",
|
|
"ctypes",
|
|
"hotkey",
|
|
"key_down",
|
|
"key_up",
|
|
"logger",
|
|
"logging",
|
|
"parse_send_keys",
|
|
"press",
|
|
"require_windows",
|
|
"send_keys",
|
|
"time",
|
|
"to_vk",
|
|
"type_text",
|
|
"wintypes",
|
|
"write"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"Iterable": "(*args, **kwargs)",
|
|
"List": "(*args, **kwargs)",
|
|
"Optional": "(*args, **kwds)",
|
|
"Sequence": "(*args, **kwargs)",
|
|
"hotkey": "(*keys: 'str', interval: 'float' = 0.02) -> 'None'",
|
|
"key_down": "(key: 'str') -> 'None'",
|
|
"key_up": "(key: 'str') -> 'None'",
|
|
"parse_send_keys": "(keys_text: 'str') -> 'List[tuple]'",
|
|
"press": "(key: 'str', times: 'int' = 1, interval: 'float' = 0.05) -> 'None'",
|
|
"require_windows": "(what: 'str') -> 'None'",
|
|
"send_keys": "(keys_text: 'str', interval: 'float' = 0.02, delay_after: 'float' = 0.0) -> 'None'",
|
|
"to_vk": "(key: 'str') -> 'int'",
|
|
"type_text": "(text: 'str', method: 'str' = 'auto', interval: 'float' = 0.01, restore_clipboard: 'bool' = True) -> 'None'",
|
|
"write": "(text: 'str', method: 'str' = 'auto') -> 'None'"
|
|
}
|
|
},
|
|
"desktopauto.marking": {
|
|
"exports": [
|
|
"Dict",
|
|
"List",
|
|
"Match",
|
|
"Optional",
|
|
"Sequence",
|
|
"Template",
|
|
"Union",
|
|
"annotations",
|
|
"capture",
|
|
"cv2",
|
|
"mark",
|
|
"np",
|
|
"os",
|
|
"summarize"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"Dict": "(*args, **kwargs)",
|
|
"List": "(*args, **kwargs)",
|
|
"Match": "(left: 'int', top: 'int', width: 'int', height: 'int', score: 'float') -> None",
|
|
"Optional": "(*args, **kwds)",
|
|
"Sequence": "(*args, **kwargs)",
|
|
"Template": "(*args, **kwargs)",
|
|
"Union": "(*args, **kwds)",
|
|
"mark": "(image: 'Union[str, np.ndarray]', templates: 'Sequence[Template]', out_path: 'str' = '', threshold: 'float' = 0.85, scales: 'Sequence[float]' = (1.0,), gray: 'bool' = True, draw_click_point: 'bool' = True) -> 'Dict[str, object]'",
|
|
"summarize": "(result: 'Dict[str, object]') -> 'str'"
|
|
}
|
|
},
|
|
"desktopauto.matcher": {
|
|
"exports": [
|
|
"DEFAULT_THRESHOLD",
|
|
"List",
|
|
"MIN_TEMPLATE_SIDE",
|
|
"MIN_TEMPLATE_STD",
|
|
"Match",
|
|
"Optional",
|
|
"Sequence",
|
|
"Tuple",
|
|
"Union",
|
|
"annotate",
|
|
"annotations",
|
|
"best",
|
|
"cv2",
|
|
"dataclass",
|
|
"load_template",
|
|
"logger",
|
|
"logging",
|
|
"match_any_in",
|
|
"match_in",
|
|
"np",
|
|
"os"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"List": "(*args, **kwargs)",
|
|
"Match": "(left: 'int', top: 'int', width: 'int', height: 'int', score: 'float') -> None",
|
|
"Optional": "(*args, **kwds)",
|
|
"Sequence": "(*args, **kwargs)",
|
|
"Tuple": "(*args, **kwargs)",
|
|
"Union": "(*args, **kwds)",
|
|
"annotate": "(image: 'np.ndarray', matches: 'Sequence[Match]', origin: 'Tuple[int, int]' = (0, 0), color: 'Tuple[int, int, int]' = (0, 200, 0)) -> 'np.ndarray'",
|
|
"best": "(matches: 'Sequence[Match]') -> 'Optional[Match]'",
|
|
"dataclass": "(cls=None, /, *, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, match_args=True, kw_only=False, slots=False, weakref_slot=False)",
|
|
"load_template": "(template: 'Union[str, np.ndarray]') -> 'np.ndarray'",
|
|
"match_any_in": "(image: 'np.ndarray', templates: 'Sequence[Union[str, np.ndarray]]', threshold: 'float' = 0.85, scales: 'Sequence[float]' = (1.0,), gray: 'bool' = True, origin: 'Tuple[int, int]' = (0, 0)) -> 'Tuple[Optional[Match], int]'",
|
|
"match_in": "(image: 'np.ndarray', template: 'Union[str, np.ndarray]', threshold: 'float' = 0.85, scales: 'Sequence[float]' = (1.0,), gray: 'bool' = True, max_results: 'int' = 0, origin: 'Tuple[int, int]' = (0, 0)) -> 'List[Match]'"
|
|
}
|
|
},
|
|
"desktopauto.ocr": {
|
|
"exports": [
|
|
"List",
|
|
"Optional",
|
|
"Sequence",
|
|
"TextItem",
|
|
"Union",
|
|
"annotations",
|
|
"available",
|
|
"best_text",
|
|
"capture",
|
|
"cv2",
|
|
"dataclass",
|
|
"load_template",
|
|
"logger",
|
|
"logging",
|
|
"mark_text",
|
|
"match_text",
|
|
"np",
|
|
"offset",
|
|
"os",
|
|
"re",
|
|
"recognize",
|
|
"summarize",
|
|
"threading"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"List": "(*args, **kwargs)",
|
|
"Optional": "(*args, **kwds)",
|
|
"Sequence": "(*args, **kwargs)",
|
|
"TextItem": "(text: 'str', left: 'int', top: 'int', width: 'int', height: 'int', score: 'float') -> None",
|
|
"Union": "(*args, **kwds)",
|
|
"available": "() -> 'bool'",
|
|
"best_text": "(items: 'Sequence[TextItem]') -> 'Optional[TextItem]'",
|
|
"dataclass": "(cls=None, /, *, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, match_args=True, kw_only=False, slots=False, weakref_slot=False)",
|
|
"load_template": "(template: 'Union[str, np.ndarray]') -> 'np.ndarray'",
|
|
"mark_text": "(image: 'Union[str, np.ndarray]', items: 'Sequence[TextItem]', out_path: 'str' = '', only: 'Optional[Sequence[TextItem]]' = None, box_color: 'tuple' = (0, 200, 0), text_color: 'tuple' = (0, 0, 255)) -> 'str'",
|
|
"match_text": "(items: 'Sequence[TextItem]', query: 'str', exact: 'bool' = False, regex: 'bool' = False, case_sensitive: 'bool' = False) -> 'List[TextItem]'",
|
|
"offset": "(items: 'Sequence[TextItem]', origin: 'tuple') -> 'List[TextItem]'",
|
|
"recognize": "(image: 'Union[str, np.ndarray]', min_score: 'float' = 0.0, sort: 'bool' = True) -> 'List[TextItem]'",
|
|
"summarize": "(items: 'Sequence[TextItem]', limit: 'int' = 0) -> 'str'"
|
|
}
|
|
},
|
|
"desktopauto.process": {
|
|
"exports": [
|
|
"List",
|
|
"Optional",
|
|
"PROCESSENTRY32W",
|
|
"Sequence",
|
|
"TH32CS_SNAPPROCESS",
|
|
"Union",
|
|
"annotations",
|
|
"ctypes",
|
|
"is_running",
|
|
"kill_process",
|
|
"launch",
|
|
"list_processes",
|
|
"open_path",
|
|
"open_url",
|
|
"os",
|
|
"require_windows",
|
|
"run_or_open",
|
|
"subprocess",
|
|
"terminate_process",
|
|
"time",
|
|
"wait_process",
|
|
"wintypes"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"List": "(*args, **kwargs)",
|
|
"Optional": "(*args, **kwds)",
|
|
"Sequence": "(*args, **kwargs)",
|
|
"Union": "(*args, **kwds)",
|
|
"is_running": "(name: 'str') -> 'bool'",
|
|
"kill_process": "(target: 'Union[int, str]', wait: 'float' = 0.5) -> 'List[int]'",
|
|
"launch": "(target: 'str', args: 'Sequence[str]' = (), cwd: 'Optional[str]' = None, wait: 'float' = 0.0) -> 'subprocess.Popen'",
|
|
"list_processes": "(name: 'str' = '', with_path: 'bool' = False) -> 'List[dict]'",
|
|
"open_path": "(path: 'str') -> 'str'",
|
|
"open_url": "(url: 'str') -> 'str'",
|
|
"require_windows": "(what: 'str') -> 'None'",
|
|
"run_or_open": "(target: 'str', args: 'Sequence[str]' = (), wait: 'float' = 0.0) -> 'Optional[subprocess.Popen]'",
|
|
"terminate_process": "(pid: 'int', wait: 'float' = 0.5) -> 'None'",
|
|
"wait_process": "(name: 'str', timeout: 'float' = 30.0, interval: 'float' = 0.5, until: 'str' = 'start') -> 'bool'"
|
|
}
|
|
},
|
|
"desktopauto.screen": {
|
|
"exports": [
|
|
"ColorMatch",
|
|
"List",
|
|
"Match",
|
|
"Optional",
|
|
"Region",
|
|
"Screen",
|
|
"Sequence",
|
|
"Template",
|
|
"TextItem",
|
|
"Tuple",
|
|
"Union",
|
|
"activate_window",
|
|
"annotations",
|
|
"capture",
|
|
"click",
|
|
"click_image",
|
|
"click_text",
|
|
"clipboard",
|
|
"colors",
|
|
"cursor",
|
|
"cursor_pos",
|
|
"diff",
|
|
"drag",
|
|
"exists",
|
|
"find",
|
|
"find_all",
|
|
"find_all_text",
|
|
"find_any",
|
|
"find_color",
|
|
"find_text",
|
|
"hotkey",
|
|
"hover",
|
|
"hover_image",
|
|
"hover_text",
|
|
"image_exists",
|
|
"keys",
|
|
"logger",
|
|
"logging",
|
|
"move_mouse",
|
|
"move_to",
|
|
"np",
|
|
"ocr",
|
|
"ocr_available",
|
|
"ocr_text",
|
|
"ocr_text_with_position",
|
|
"os",
|
|
"paste",
|
|
"press",
|
|
"random",
|
|
"read_text",
|
|
"screen_size",
|
|
"scroll",
|
|
"send_keys",
|
|
"size",
|
|
"sleep",
|
|
"text_exists",
|
|
"time",
|
|
"type_text",
|
|
"wait",
|
|
"wait_all",
|
|
"wait_any",
|
|
"wait_gone",
|
|
"wait_image",
|
|
"wait_text",
|
|
"wait_text_exists"
|
|
],
|
|
"all": [],
|
|
"signatures": {
|
|
"ColorMatch": "(left: 'int', top: 'int', width: 'int', height: 'int', area: 'int', color: 'RGB') -> None",
|
|
"List": "(*args, **kwargs)",
|
|
"Match": "(left: 'int', top: 'int', width: 'int', height: 'int', score: 'float') -> None",
|
|
"Optional": "(*args, **kwds)",
|
|
"Region": "(*args, **kwargs)",
|
|
"Screen": "(window: 'Union[int, str, None]' = None, region: 'Optional[Region]' = None, threshold: 'float' = 0.85, scales: 'Sequence[float]' = (1.0,), gray: 'bool' = True, debug_dir: 'str' = '', activate_before_click: 'bool' = True)",
|
|
"Sequence": "(*args, **kwargs)",
|
|
"Template": "(*args, **kwargs)",
|
|
"TextItem": "(text: 'str', left: 'int', top: 'int', width: 'int', height: 'int', score: 'float') -> None",
|
|
"Tuple": "(*args, **kwargs)",
|
|
"Union": "(*args, **kwds)",
|
|
"activate_window": "(window: 'Union[int, str]', wait: 'float' = 0.2) -> 'int'",
|
|
"click": "(template: 'Template', button: 'str' = 'left', clicks: 'int' = 1, offset: 'Tuple[int, int]' = (0, 0), **kwargs) -> 'bool'",
|
|
"click_image": "(template: 'Template', button: 'str' = 'left', clicks: 'int' = 1, offset: 'Tuple[int, int]' = (0, 0), **kwargs) -> 'bool'",
|
|
"click_text": "(text: 'str', button: 'str' = 'left', clicks: 'int' = 1, offset: 'Tuple[int, int]' = (0, 0), **kwargs) -> 'bool'",
|
|
"cursor": "() -> 'Tuple[int, int]'",
|
|
"cursor_pos": "() -> 'Tuple[int, int]'",
|
|
"diff": "(baseline, **kwargs)",
|
|
"drag": "(src, dst, duration: 'float' = 0.5, button: 'str' = 'left') -> 'None'",
|
|
"exists": "(template: 'Template', **kwargs) -> 'bool'",
|
|
"find": "(template: 'Template', **kwargs) -> 'Optional[Match]'",
|
|
"find_all": "(template: 'Template', **kwargs) -> 'List[Match]'",
|
|
"find_all_text": "(text: 'str', **kwargs) -> 'List[TextItem]'",
|
|
"find_any": "(templates, **kwargs)",
|
|
"find_color": "(color, **kwargs)",
|
|
"find_text": "(text: 'str', **kwargs) -> 'Optional[TextItem]'",
|
|
"hotkey": "(*key_names: 'str', interval: 'float' = 0.02) -> 'None'",
|
|
"hover": "(target, offset: 'Tuple[int, int]' = (0, 0), **kwargs) -> 'bool'",
|
|
"hover_image": "(target, offset: 'Tuple[int, int]' = (0, 0), **kwargs) -> 'bool'",
|
|
"hover_text": "(text: 'str', offset: 'Tuple[int, int]' = (0, 0), **kwargs) -> 'bool'",
|
|
"image_exists": "(template: 'Template', **kwargs) -> 'bool'",
|
|
"move_mouse": "(x: 'int', y: 'int', relative_to: 'str' = 'screen', speed: 'str' = 'instant', window=None) -> 'Tuple[int, int]'",
|
|
"move_to": "(x: 'int', y: 'int', settle: 'float' = 0.0) -> 'None'",
|
|
"ocr_available": "() -> 'bool'",
|
|
"ocr_text": "(sep: 'str' = '\\n', **kwargs) -> 'str'",
|
|
"ocr_text_with_position": "(min_score: 'float' = 0.0, **kwargs) -> 'List[TextItem]'",
|
|
"paste": "(text: 'str', restore: 'bool' = True) -> 'None'",
|
|
"press": "(key: 'str', times: 'int' = 1, interval: 'float' = 0.05) -> 'None'",
|
|
"read_text": "(min_score: 'float' = 0.0, **kwargs) -> 'List[TextItem]'",
|
|
"screen_size": "() -> 'Tuple[int, int]'",
|
|
"scroll": "(notches: 'int' = 3, at=None, horizontal: 'bool' = False) -> 'None'",
|
|
"send_keys": "(keys_text: 'str', interval: 'float' = 0.02, delay_after: 'float' = 0.0) -> 'None'",
|
|
"size": "() -> 'Tuple[int, int]'",
|
|
"sleep": "(seconds: 'float' = 1.0, random_range: 'Optional[Tuple[float, float]]' = None) -> 'float'",
|
|
"text_exists": "(text: 'str', **kwargs) -> 'bool'",
|
|
"type_text": "(text: 'str', method: 'str' = 'auto', interval: 'float' = 0.01) -> 'None'",
|
|
"wait": "(template: 'Template', timeout: 'float' = 10.0, interval: 'float' = 0.5, **kwargs) -> 'Optional[Match]'",
|
|
"wait_all": "(templates: 'Sequence[Template]', timeout: 'float' = 10.0, interval: 'float' = 0.5, **kwargs) -> 'bool'",
|
|
"wait_any": "(templates: 'Sequence[Template]' = (), texts: 'Sequence[str]' = (), timeout: 'float' = 10.0, interval: 'float' = 0.5, **kwargs) -> 'Optional[dict]'",
|
|
"wait_gone": "(template: 'Template', timeout: 'float' = 10.0, interval: 'float' = 0.5, **kwargs) -> 'bool'",
|
|
"wait_image": "(template: 'Template', timeout: 'float' = 10.0, interval: 'float' = 0.5, **kwargs) -> 'Optional[Match]'",
|
|
"wait_text": "(text: 'str', timeout: 'float' = 10.0, interval: 'float' = 1.0, **kwargs) -> 'Optional[TextItem]'",
|
|
"wait_text_exists": "(text: 'str', timeout: 'float' = 10.0, interval: 'float' = 1.0, **kwargs) -> 'Optional[TextItem]'"
|
|
}
|
|
},
|
|
"desktopauto.window": {
|
|
"exports": [
|
|
"Window",
|
|
"get_window",
|
|
"foreground_window",
|
|
"close_window",
|
|
"list_windows",
|
|
"find_window",
|
|
"find_windows",
|
|
"wait_window",
|
|
"child_windows",
|
|
"window_info",
|
|
"window_rect",
|
|
"activate_window"
|
|
],
|
|
"all": [
|
|
"Window",
|
|
"get_window",
|
|
"foreground_window",
|
|
"close_window",
|
|
"list_windows",
|
|
"find_window",
|
|
"find_windows",
|
|
"wait_window",
|
|
"child_windows",
|
|
"window_info",
|
|
"window_rect",
|
|
"activate_window"
|
|
],
|
|
"signatures": {
|
|
"Window": "(hwnd: 'int')",
|
|
"get_window": "(title: 'str' = '', exact: 'bool' = False, pid: 'int' = 0, process: 'str' = '', class_name: 'str' = '', index: 'int' = 0, timeout: 'float' = 0.0) -> 'Window'",
|
|
"foreground_window": "() -> 'Optional[Window]'",
|
|
"close_window": "(window_or_title: 'Union[int, str, Window]', wait: 'float' = 0.5) -> 'None'",
|
|
"list_windows": "(keyword: 'str' = '', visible_only: 'bool' = True) -> 'List[Tuple[int, str]]'",
|
|
"find_window": "(keyword: 'str') -> 'int'",
|
|
"find_windows": "(title: 'str' = '', exact: 'bool' = False, pid: 'int' = 0, process: 'str' = '', class_name: 'str' = '', visible_only: 'bool' = True, include_minimized: 'bool' = False) -> 'List[dict]'",
|
|
"wait_window": "(title: 'str' = '', timeout: 'float' = 10.0, interval: 'float' = 0.3, **kwargs) -> 'Optional[dict]'",
|
|
"child_windows": "(window: 'Union[int, str]') -> 'List[dict]'",
|
|
"window_info": "(hwnd: 'int') -> 'dict'",
|
|
"window_rect": "(window: 'Union[int, str]') -> 'Tuple[int, int, int, int]'",
|
|
"activate_window": "(window_or_title: 'Union[int, str, Window]') -> 'int'"
|
|
}
|
|
}
|
|
}
|
|
} |