AutoCV Functions

class autocv.autocv.AutoCV(hwnd: int = -1)[source]

Bases: Input

Coordinate window capture, live inspection tools, and automation hooks.

get_hwnd() int[source]

Return the current target window handle.

get_window_size() tuple[int, int][source]

Return the client area dimensions for the active window.

antigcp() bool[source]

Install the GetCursorPos patch shipped with the prebuilt extension.

Returns:

True when the patch succeeds, otherwise False.

Return type:

bool

image_picker() tuple[npt.NDArray[np.uint8] | None, tuple[int, int, int, int] | None][source]

Launch the ROI picker overlay.

Returns:

Captured region and bounding rectangle, or (None, None) when cancelled.

Return type:

tuple[npt.NDArray[np.uint8] | None, tuple[int, int, int, int] | None]

color_picker() tuple[tuple[int, int, int], tuple[int, int]] | None[source]

Launch the pixel colour picker.

Returns:

Selected RGB colour with screen coordinates, or None.

Return type:

tuple[tuple[int, int, int], tuple[int, int]] | None

image_filter() FilterSettings[source]

Return interactive filter settings derived from the current backbuffer.

show_backbuffer(*, live: bool = False) None[source]

Display the active backbuffer in an OpenCV window.

Parameters:

live (bool) – When True, refresh continuously until a key press.