AutoCV is an innovative computer vision library that simplifies image processing and analysis. With a focus on ease of use and flexibility, AutoCV enables rapid development of computer vision applications.
- Easy-to-use interface
- Comprehensive image processing functions
- High performance with real-time capabilities
- Extensive documentation
To get started with AutoCV, install the package using pip:
pip install autocv
-
AutoCV requires Python 3.10+
-
Install Google Tesseract OCR (additional info how to install the engine on Linux, Mac OSX and Windows). You must be able to invoke the tesseract command as
tesseract
. If this isn't the case, for example because tesseract isn't in your PATH, you will have to change the "tesseract_cmd" variablepytesseract.pytesseract.tesseract_cmd
. -
Note: In some rare cases, you might need to additionally install
tessconfigs
andconfigs
from tesseract-ocr/tessconfigs if the OS specific package doesn't include them.
from autocv import AutoCV
# initialize AutoCV class
autocv = AutoCV()
# set handle
autocv.set_hwnd_by_title("RuneLite")
# set inner handle recursively
while autocv.set_inner_hwnd_by_title("SunAwtCanvas"):
pass
# re-write memory to disable getCursorPos
autocv.antigcp()
# refresh (or in this case, set) the backbuffer image
autocv.refresh()
# find the first green contour with an area over 50 and a tolerance of 50
contour = autocv.find_contours((0, 255, 0), tolerance=50, min_area=50).first()
# move and click the mouse to a random point in the contour
autocv.move_mouse(*contour.random_point())
autocv.click_mouse()