Skip to main content

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 tasks for 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

Full Documentation Github

Project details


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.5.tar.gz (16.4 kB view hashes)

Uploaded Source

Built Distribution

cvbot-3.1.5-py3-none-any.whl (18.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page