Visual based desktop automation toolbox. Supports mouse & keyboard control
Project description
CVBot for desktop automation
CVBot is a python package developed to make using computer vision techniques easier and simple to use. Its main focus is to aid in automating visual desktop related tasksfor repetitive work, games and others. Working "like a human".
Features
- Mouse & keyboard control.
- Control windows and get their position.
- OpenCV image wrapper
Image class
to easily crop, resize, show, and convert images. - Flexible digits & numbers recognition/matching.
- Powerful image search on screen or a local file.
- Implements sophisticated image search techniques like SIFT.
- Color based object detection.
- Very fast screenshot grab.
- Accurate OCR integrated with
Image class
. - Artificial Intelligence based object detection support using Yolov7.
Upcoming
- Better documentation.
- More QOL functions and classes.
- More detection options.
Simple example
Detect an object on the screen
from cvbot.capture import screenshot
from cvbot.io import read_img
from cvbot.match import look_for
obj = read_img("object.png") # Read 'object.png' file, (an object currently visible on screen)
scimg = screenshot() # Take a screenshot
pos = look_for(obj, scimg, 0.6) # Image search function, parameters: (needle, haystack, search confidence 1 = 100%)
print(pos) # PRINTS: (188, 538) # None if not found
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cvbot-3.1.4.tar.gz
(16.4 kB
view hashes)
Built Distribution
cvbot-3.1.4-py3-none-any.whl
(18.6 kB
view hashes)