AutoCV Functions¶
- class autocv.autocv.AutoCV(hwnd: int = -1)[source]¶
Bases:
Input
Provides an interface for interacting with windows and images on a computer screen.
AutoCV uses OpenCV and Tesseract OCR to capture and process images, perform color picking, and simulate user input. It offers methods for window manipulation, screen capture, and image analysis.
- get_hwnd() int [source]¶
Returns the current window handle.
- Returns:
The window handle.
- Return type:
- antigcp() bool [source]¶
Patches the target process by replacing its GetCursorPos function.
- Returns:
True if successfully patched; otherwise, False.
- Return type:
- image_picker() tuple[npt.NDArray[np.uint8] | None, tuple[int, int, int, int] | None] [source]¶
Launches the image picker interface for region selection.
- color_picker() tuple[tuple[int, int, int], tuple[int, int]] | None [source]¶
Launches the color picker interface for pixel color selection.
- image_filter() FilterSettings [source]¶
Applies image filtering operations to the current backbuffer and returns the filter settings.
- Returns:
The current filter settings after applying the image filter.
- Return type: